[wp-trac] [WordPress Trac] #61364: 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)

WordPress Trac noreply at wordpress.org
Tue Jun 4 08:12:47 UTC 2024


#61364: 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)
--------------------------+-----------------------------
 Reporter:  kkmuffme      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  5.8
 Severity:  critical      |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 PHP Error: 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). (This message was added in version
 5.8.0.)
 on https://example.com/wp-admin/widgets.php

 {{{

 7. /path/wp-includes/class-wp-hook.php (324):
 wp_check_widget_editor_deps()
 8. /path/wp-includes/class-wp-hook.php (348): WP_Hook->apply_filters(
 $value = NULL, $args = Array( [0] =>  ) )
 9. /path/wp-includes/plugin.php (507): WP_Hook->do_action( $args = Array(
 [0] =>  ) )
 10. /path/wp-admin/admin-header.php (163): do_action( $hook_name =
 'admin_head' )
 11. /path/wp-admin/widgets-form-blocks.php (70): require_once( '/path/wp-
 admin/admin-header.php' )
 12. /path/wp-admin/widgets.php (32): require( '/path/wp-admin/widgets-
 form-blocks.php' )
 }}}

 This should get fixed with WP 6.6 as it's a WP internal issue that has
 existed for a while - I saw the other tickets which were created for this
 previously were shot down bc the reporter didn't know how to report this
 in a general way and without details.
 However I get this by just opening the URL.

 The stack trace does not include anything custom - it appears to happen on
 a regular/default WP install.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61364>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list