[wp-trac] [WordPress Trac] #60302: Notice: Function wp_enqueue_script() was called incorrectly. "wp-editor"

WordPress Trac noreply at wordpress.org
Fri Jan 19 23:21:03 UTC 2024


#60302: Notice: Function wp_enqueue_script() was called incorrectly. "wp-editor"
--------------------------+----------------------
 Reporter:  kazskater99   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Widgets       |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by sabernhardt):

 * status:  new => closed
 * resolution:   => invalid
 * component:  General => Widgets
 * milestone:  Awaiting Review =>


Old description:

> 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 6031
>

> I am doing this not to show message.
> function example_theme_support() {
>     remove_theme_support( 'widgets-block-editor' );
> }
> add_action( 'after_setup_theme', 'example_theme_support' );
>
> But If I put back to block editor show up I wan to use block editor
>
> Thank you

New description:

 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 6031


 I am doing this not to show message.
 {{{
 function example_theme_support() {
     remove_theme_support( 'widgets-block-editor' );
 }
 add_action( 'after_setup_theme', 'example_theme_support' );
 }}}

 But If I put back to block editor show up I wan to use block editor

 Thank you

--

Comment:

 Sorry, WordPress Core Trac is used for fixing and enhancing the Core
 software, not for individual site help.

 Please use the support forums for help requests.
 https://wordpress.org/support/forums/

 This error has already had multiple related topics to read before opening
 a new topic too.
 https://wordpress.org/search/%22wp-
 editor%22+script+should+not+be+enqueued+together+with+the+new+widgets+editor/

 The message added in #53569 indicates that the active theme or a plugin
 uses the incompatible `wp-editor` script. If you can determine which
 plugin or theme causes the error, you could report it on their support
 forum.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60302#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list