wp_register_script() is called incorrectly in new version 4.2.0
-
Updating to version 4.2.0 from 4.1.3 with API keys set results in error message (not if it is a fresh installation without API keys set):
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /usr/www/users/xxxx/wp-includes/functions.php on line 4986 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/xxxx/wp-includes/functions.php:4986) in /usr/www/users/xxxx/wp-admin/includes/misc.php on line 1252 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/xxxx/wp-includes/functions.php:4986) in /usr/www/users/xxxx/wp-admin/admin-header.php on line 9
Is there somewhere a link to a working older version? They are not listed under the “Development” tab.
Found it. It can be reached via the “Advanced” link.
- The topic ‘wp_register_script() is called incorrectly in new version 4.2.0’ is closed to new replies.