Plugin breaks if jquery is deregistered
-
add_action('wp_enqueue_scripts', function () { wp_deregister_script('jquery'); });
breaks the plugin:
Notice: Undefined index: jquery in better-wp-security/core/modules/wordpress-tweaks/class-itsec-wordpress-tweaks.php on line 349
store_jquery_version()
should check if $wp_scripts->registered[‘jquery’] is set before trying to use it.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Plugin breaks if jquery is deregistered’ is closed to new replies.