#53664 closed defect (bug) (invalid)
Notice on /wp-admin/widgets.php
Reported by: | azamat88 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.8 |
Component: | Widgets | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
PHP Notice: wp_enqueue_script() was called <strong>incorrectly</strong>. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in C:\xampp\htdocs\test.test\wp-includes\functions.php on line 5535
Change History (3)
#1
@
3 years ago
- Keywords reporter-feedback added; needs-testing removed
- Milestone Awaiting Review deleted
#2
@
3 years ago
- Resolution set to invalid
- Status changed from new to closed
Going to close this out. As @dlh mentioned, this was intentionally added for 5.8. Feel free to reopen if there is more information that was not included in the original report.
#3
@
3 years ago
Hello!
I'd like to chime in here by saying that PluginSidebar and PluginSidebarMoreMenuItem can't be used without wp-editor / wp-edit-post and it would be super relevant to be able to add such sidebar plugins in the new widgets area. I, for example, created a plugin that allows the user to make the sidebar wider when editing blocks. Since PluginSidebar and PluginSidebarMoreMenuItem are needed, I also need to enqueue wp-edit-post. Granted this one is already added in the posts editing screen, but I mark it as a dependency since I need the components that live inside that.
Maybe PluginSidebar and PluginSidebarMoreMenuItem should be extracted to make them available without the full block editor then?
Hi @azamat88, and welcome back to Trac!
This message was added intentionally in #53569. Does it still occur with all plugins disabled and using a default theme?