Title: Editing widgets; Notice: Function wp_enqueue_script() was called incorrectly
Last modified: April 4, 2023

---

# Editing widgets; Notice: Function wp_enqueue_script() was called incorrectly

 *  Resolved [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/editing-widgets-notice-function-wp_enqueue_script-was-called-incorrectly/)
 * Hey! Thank you for this very fine plugin!
 * When editing widgets in WordPress 6.2, with debug on, I get the following 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 /home/sustain2/staging.oldrup.dev/
   wp-includes/functions.php on line 5865_
 * This warning is triggered with Blockmeister enabled as the only plugin.
 * I’m using a “classic” theme, Blocksy.
 * I can still edit my footer widgets, so not critical.
 * [[
 * Screenshot of warning in Appearance > Widget
 * Is that something you can reproduce?
 * Kind regards
 * Bjarne
    -  This topic was modified 3 years, 1 month ago by [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [BlockMeister](https://wordpress.org/support/users/blockmeister/)
 * (@blockmeister)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/editing-widgets-notice-function-wp_enqueue_script-was-called-incorrectly/#post-16629103)
 * Hey Bjarne,
   Thank you for reporting this. I could replicate the issue and identified
   the cause of it. The issue will be fixed in the next release which is currently
   under development.Kind regards,Benny
 *  Thread Starter [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/editing-widgets-notice-function-wp_enqueue_script-was-called-incorrectly/#post-16633390)
 * Nice. I’ll be sure to test the update as soon as it is released. Thank you, again
   😊

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Editing widgets; Notice: Function wp_enqueue_script() was called incorrectly’
is closed to new replies.

 * ![](https://ps.w.org/blockmeister/assets/icon-256x256.png?rev=2598699)
 * [BlockMeister - Block Pattern Builder](https://wordpress.org/plugins/blockmeister/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blockmeister/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blockmeister/)
 * [Active Topics](https://wordpress.org/support/plugin/blockmeister/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blockmeister/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blockmeister/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/editing-widgets-notice-function-wp_enqueue_script-was-called-incorrectly/#post-16633390)
 * Status: resolved