[wp-trac] [WordPress Trac] #53696: wp_add_iframed_editor_assets_html() not checking for block editor
WordPress Trac
noreply at wordpress.org
Wed Aug 4 05:09:23 UTC 2021
#53696: wp_add_iframed_editor_assets_html() not checking for block editor
------------------------------+----------------------------
Reporter: swissspidy | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8.1
Component: Editor | Version: 5.8
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+----------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51540" 51540]:
{{{
#!CommitTicketReference repository="" revision="51540"
Editor: Prevent block-editor JavaScript loading in other editors.
Add a check to `wp_add_iframed_editor_assets_html()` confirming the edit
post screen is using the block-editor before including block-editor
specific JavaScript. For the classic and other editors the function
returns early without any output.
Props swissspidy, desrosj.
Fixes #53696.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53696#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list