Make WordPress Core

Changeset 51593


Ignore:
Timestamp:
08/10/2021 04:33:46 PM (3 years ago)
Author:
desrosj
Message:

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, peterwilsoncc.
Merges [51540] to the 5.8 branch.
Fixes #53696.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.