[wp-trac] [WordPress Trac] #51330: Allow more granular control over enqueuing editor scripts and styles
WordPress Trac
noreply at wordpress.org
Thu Oct 1 00:38:10 UTC 2020
#51330: Allow more granular control over enqueuing editor scripts and styles
-------------------------+-----------------------
Reporter: zieladam | Owner: zieladam
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.6
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------
Comment (by noisysocks):
In [changeset:"49080" 49080]:
{{{
#!CommitTicketReference repository="" revision="49080"
Editor: Add should_load_block_editor_scripts_and_styles
Adds a new should_load_block_editor_scripts_and_styles filter which can be
used
by plugins including Gutenberg to more precisely customise when block
editor
scripts and styles should be loaded by script-loader.php. Previously,
plugins
had to fiddle with $current_screen->is_block_editor().
Props zieladam.
See #51330.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51330#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list