Title: Function wp_enqueue_script() was called incorrectly. &#8220;wp-editor&#8221;
Last modified: September 24, 2024

---

# Function wp_enqueue_script() was called incorrectly. “wp-editor”

 *  [lovelogan](https://wordpress.org/support/users/lovelogan/)
 * (@lovelogan)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-wp-editor/)
 * **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](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 5.8.0.) in **/home1/
   gottalov/public_html/wp-includes/functions.php** on line **6085**
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-wp_enqueue_script-was-called-incorrectly-wp-editor%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-wp-editor/#post-18034380)
 * The message is probably related to an outdated plugin or theme that you are using.
   Deactivate all plugins to test which one is responsible. If you then reactivate
   them individually, you should have found the cause as soon as the message reappears.
   You can also try changing the theme to a standard theme to rule this out as the
   cause.

Viewing 1 replies (of 1 total)

The topic ‘Function wp_enqueue_script() was called incorrectly. “wp-editor”’ is 
closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-wp-editor/#post-18034380)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
