jQuery error after removing from head
-
Hi
My website is giving the following error:
Notice: Undefined index: jquery in C:\domains\domain.com\wwwroot\wp-content\plugins\better-wp-security\core\modules\tweaks\class-itsec-tweaks.php on line 242 Notice: Trying to get property of non-object in C:\domains\domain.com\wwwroot\wp-content\plugins\better-wp-security\core\modules\tweaks\class-itsec-tweaks.php on line 242This is because I’ll manually removed jQuery from my head using the following:
function removejQuery() { wp_deregister_script('jquery'); } if ( !is_admin() ) add_action('wp_enqueue_scripts', 'removejQuery');I’ve added jQuery in a minified file in the footer of my website. Unfortunately I’ll still get the error when WP_DEBUG is set to true. How can I fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘jQuery error after removing from head’ is closed to new replies.