[wp-trac] [WordPress Trac] #53762: Replace the remaining references to wp.editor with wp.oldEditor

WordPress Trac noreply at wordpress.org
Wed Sep 8 18:19:24 UTC 2021


#53762: Replace the remaining references to wp.editor with wp.oldEditor
------------------------------------------+-----------------------
 Reporter:  zieladam                      |       Owner:  azaozz
     Type:  enhancement                   |      Status:  reopened
 Priority:  highest omg bbq               |   Milestone:  5.8.1
Component:  Editor                        |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-----------------------
Changes (by azaozz):

 * priority:  normal => highest omg bbq
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 There seems to be a regression here. This line

 `window.wp.editor = window.wp.oldEditor = window.wp.oldEditor || {};`

 overwrites `wp.editor` with `wp.oldEditor`. The old code was just adding
 to `wp.editor`:

 {{{
 window.wp.editor = window.wp.editor || {};
 window.wp.editor.getDefaultSettings = function() {
 ...
 }}}

 Patch coming up.

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


More information about the wp-trac mailing list