deregister script "Trying to get property of non-object in…" notice
-
I want to deregister a script on certain pages, but I get php notices when I call wp_deregister_script during the “wp_print_scripts” action.
The notices occur in “wp-includes/class.wp-scripts.php on line 158”. The first: “Undefined index: <scriptname>” and second: “Trying to get property of non-object”.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘deregister script "Trying to get property of non-object in…" notice’ is closed to new replies.