Invalid argument in script-loader after update to 5.8
-
Hello all,
I updated a local dev version of one of my websites to check if it will work with 5.8.
I am using a self developed AMP-only theme, hence I had to remove some filters and stuff from wordpress head loading. I have already found which line results in the error:
remove_action('wp_head', 'wp_enqueue_scripts', 1);
This leads to the following error:
Warning: Invalid argument supplied for foreach() in /wp-includes/script-loader.php on line 2652
Any idea how I can get both to work? If I don’t remove the scripts from the head which WordPress normally loads the AMP-checker won’t be satisfied and shows errors, then my website will no longer be AMP-compliant.
Any help is appreciated.
Thanks a lot.
- The topic ‘Invalid argument in script-loader after update to 5.8’ is closed to new replies.