$GLOBALS['wp_scripts'] is empty
-
I’ve noticed this happen in the past temporarily but now it’s a permanent issue. It was happening on 4.4 and still happening on 4.5.
I’m trying to get the packaged version of jquery with $GLOBALS[‘wp_scripts’]->registered[‘jquery’] but it’s empty. however, the list exists if i login to wordpress first and have the adminbar loaded.add_action('wp_enqueue_scripts', function(){ $system_jquery = $GLOBALS['wp_scripts']->registered['jquery']; wp_deregister_script('jquery'); });
i’ve tried adding a priority value for the add_action.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘$GLOBALS['wp_scripts'] is empty’ is closed to new replies.