Title: wp_enqueue_script() was called incorrectly
Last modified: April 25, 2023

---

# wp_enqueue_script() was called incorrectly

 *  [Malcolm](https://wordpress.org/support/users/malcolm-oph/)
 * (@malcolm-oph)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-was-called-incorrectly-22/)
 * Firstly, thank you for creating this plugin … just what I needed.
 * However, I’m getting a “wp_enqueue_script() was called incorrectly” warning when
   I try to access the Appearance | Widgets admin page, which disappears when the
   Wonder Slider Lite plugin  is deactivated.
 * Here’s the complete warning message:
 * 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 {My Domain }/wp-includes/functions.
   php on line 5865
 * Line 5865 registers the block.build.js script, and wp-editor is listed as one
   of the dependences, which will cause this script to be loaded if not already 
   present, and it seems that this conflicts with the block based editor now used
   for widgets. Removing the dependency fixed the problem for me, which may be the
   simplest solution. I’ll leave it with you.
    -  This topic was modified 3 years, 1 month ago by [Malcolm](https://wordpress.org/support/users/malcolm-oph/).

The topic ‘wp_enqueue_script() was called incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/wonderplugin-slider-lite/assets/icon-128x128.png?rev=1341124)
 * [Wonder Slider Lite](https://wordpress.org/plugins/wonderplugin-slider-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wonderplugin-slider-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wonderplugin-slider-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wonderplugin-slider-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wonderplugin-slider-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wonderplugin-slider-lite/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Malcolm](https://wordpress.org/support/users/malcolm-oph/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/wp_enqueue_script-was-called-incorrectly-22/)
 * Status: not resolved