Widget issue: Notice: Function wp_enqueue_script() was called incorrectly.
-
Hi there,
I noticed I get the warning
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 6114
when using table of contents.I tracked down the error, which is due to EditorBlock class in plugins/EditorBlock. If I get it correctly, you try to hook both pre-5.8 and post-5.8 WordPress widgets.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.