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

WordPress Trac noreply at wordpress.org
Wed Jul 7 10:49:22 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:
--------------------------+-------------------------

Comment (by zieladam):

 Digging further into this one. I proposed a backwards-compatible solution
 for the root cause of the error in https://github.com/WordPress/wordpress-
 develop/pull/1481

 It simply does this:

 {{{
 Object.assign(window.wp.editor, window.wp.oldEditor);
 }}}


 We need it because of the reasons mentioned in
 https://github.com/WordPress/gutenberg/issues/33203, most importantly
 there is quite some code in core and in plugins that expect wp.editor to
 be really wp.oldEditor. We can maybe patch the core, but it will break all
 the third party plugins. It would be convenient to deprecate the old
 wp.editor object, but for now we need to maintain BC in 5.8 and I think
 that PR is our best shot at that.

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


More information about the wp-trac mailing list