[wp-trac] [WordPress Trac] #53437: Widgets Screen: wp.editor.initialize is not a function notice
WordPress Trac
noreply at wordpress.org
Tue Jun 22 16:55:05 UTC 2021
#53437: Widgets Screen: wp.editor.initialize is not a function notice
--------------------------+-------------------------
Reporter: noisysocks | Owner: noisysocks
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: Widgets | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-------------------------
Changes (by desrosj):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"51202" 51202]:
{{{
#!CommitTicketReference repository="" revision="51202"
Widgets: Stop loading `wp-editor` and the Block Directory assets on the
widgets screen.
When using the text widget, a `wp.editor.initialize is not a function`
notice is encountered. This happens when `wp-editor` is loaded as a
dependency, which assigns `wp.oldEditor = wp.editor` and then redefines
`wp.editor`.
`wp-editor` is only used for the Classic block, which is not supported in
the new widgets editor. [51198-51199] updated `@wordpress/block-library`
to remove `wp-editor` as a dependency, but it’s still listed as a
dependency of the `wp-block-directory` script handle.
Since the Block directory is not supported within the widgets editor, the
related assets can safely be blocked from enqueueing.
Props noisysocks, gziolo, Mamaduka, mkaz.
Fixes #53437. See #53397.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53437#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list