Notice for Enqueuing Scripts on Widgets Page
-
When this plugin is installed, the Widgets page in the CMS generates this notice:
Notice: Function wp_enqueue_script() was called incorrectly. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.) in /wp-includes/functions.php on line 5865
From debugging our own plugins, this seems to related to including ‘wp-editor’ in the array of dependencies when using wp_enqueue_scripts.
Removing ‘wp-editor’ from the dependencies array in /menu-icons/vendor/codeinwp/gutenberg-menu-icons/class-gutenberg-menu-icons.php on line 63 resolves this issue.
- The topic ‘Notice for Enqueuing Scripts on Widgets Page’ is closed to new replies.