Plugin PHP Warning Notices
-
The plugin is outputting two PHP warning notices with
WP_DEBUGset totrue. These are:wp_enqueue_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.)wp_enqueue_style 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.)This is caused because scripts styles in the
admin/menu.phpfile are enqueued without being hooked into one of WordPress’ actions. They are not inside a function and enqueued but just called straight from that file.Is there any plans to fix this please?
The topic ‘Plugin PHP Warning Notices’ is closed to new replies.