[wp-trac] [WordPress Trac] #53437: Widgets Screen: wp.editor.initialize is not a function notice

WordPress Trac noreply at wordpress.org
Fri Jul 9 17:53:38 UTC 2021


#53437: Widgets Screen: wp.editor.initialize is not a function notice
-------------------------------------------------+-------------------------
 Reporter:  noisysocks                           |       Owner:  zieladam
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.8
Component:  Widgets                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch commit fixed-major dev-    |     Focuses:
  reviewed                                       |
-------------------------------------------------+-------------------------

Comment (by desrosj):

 In [changeset:"51392" 51392]:
 {{{
 #!CommitTicketReference repository="" revision="51392"
 Editor: Merge conflicting wp.editor objects into single, non-conflicting
 object

 The `wp-editor` script (`@wordpress/editor` npm package) is exposed as
 `window.wp.editor` in WP Admin. This causes problems, though, as many
 older
 scripts expect to see the older `editor` script available at
 `window.wp.editor`.

 The solution is to export all the members of the older `window.wp.editor`
 module
 in the newer module to maintain backwards compatibility.

 Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, noisysocks.
 Merges [51387] to the 5.8 branch.
 See #53437.
 }}}

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


More information about the wp-trac mailing list