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 /public_html/wp-includes/functions.php on line 6031
Please check and update soon, thank you!
]]>Renders to the page with errors such as:
Loading failed for the <script> with source “https://samedayrules.com/wp-content/themes/picostrap5-child-base/js/bootstrap.bundle.min.js’%20defer=’defer”
]]>Notice: 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).
In the file functions/enqueue.php around line 62 I have changed the function from:
function bodhi_svgs_block_editor() {
if ( bodhi_svgs_advanced_mode() ) {
wp_enqueue_script(‘bodhi-svgs-gutenberg-filters’, BODHI_SVGS_PLUGIN_URL . ‘/js/gutenberg-filters.js’, [‘wp-edit-post’]);
}
}
To:
function bodhi_svgs_block_editor() {
global $pagenow;
if ( bodhi_svgs_advanced_mode() && $pagenow !== ‘widgets.php’) {
wp_enqueue_script(‘bodhi-svgs-gutenberg-filters’, BODHI_SVGS_PLUGIN_URL . ‘/js/gutenberg-filters.js’, [‘wp-edit-post’]);
}
}
And this removes the error message.
]]>this notice can be seen in the widget block editor:
Notice: 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 /opt/lampp/htdocs/testsite/wp-includes/functions.php on line 5768
When this plugin is disabled the notice disappears (WP 5.9.2 and The Events Calendar Shortcode & Block v2.5.2).
]]>With debug mode activated, I can see this PHP warning in /wp-admin/widgets.php
:
Notice: 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 /home/user/domain.com/wp-includes/functions.php on line 5663
No plugins activated.
PHP 8
WordPress 5.8.2
Twenty Twenty-One 1.4
What am I doing wrong? Many thanks!
]]>I would like to bring your attention to this php warning:
Notice: 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 /home/user/domain.com/wp-includes/functions.php on line 5663
It appears in “https://www.domain.com/wp-admin/widgets.php”.
This happens with debug ON, WP 5.8.1, Twenty Twenty-One theme 1.4 and Twentig 1.3.6 as the only plugin active in site.
Many thanks!
]]>This is the notice I’m now receiving: Notice: 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 /nas/content/live/site-name/wp-includes/functions.php on line 5535
]]>This is the notice I’m now receiving: Notice: 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 /nas/content/live/site-name/wp-includes/functions.php on line 5535
]]>Notice: 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 /home/********/********/build2/wp-includes/functions.php on line 5535
Please can anyone advise on a solution.
To provide a link to the relevant page I would have to provide a temporary login which can be done if required.
Thanks in advance for any help
]]>