Skip to content

Commit

Permalink
Fix version warning #2159
Browse files Browse the repository at this point in the history
  • Loading branch information
zahardev committed Dec 17, 2024
1 parent 809fc30 commit 50c5b6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-admin-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -1764,9 +1764,9 @@ public function set_default_view_fields( $fields = array(), $view = null, $form_
* @return void
*/
static function add_scripts_and_styles( $hook ) {
global $plugin_page, $pagenow;
global $pagenow;

$version = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? time() : $version;
$version = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? time() : Plugin::$version;

$script_debug = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
$is_widgets_page = ( 'widgets.php' === $pagenow );
Expand Down

0 comments on commit 50c5b6b

Please sign in to comment.