[wp-trac] [WordPress Trac] #51330: Allow more granular control over enqueuing editor scripts and styles
WordPress Trac
noreply at wordpress.org
Thu Oct 8 01:19:24 UTC 2020
#51330: Allow more granular control over enqueuing editor scripts and styles
-------------------------+-----------------------
Reporter: zieladam | Owner: zieladam
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.6
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------
Comment (by noisysocks):
In [changeset:"49102" 49102]:
{{{
#!CommitTicketReference repository="" revision="49102"
Editor: Only call should_load_block_editor_scripts_and_styles on admin
screens
Do not call the should_load_block_editor_scripts_and_styles filter on non-
admin
screens. This makes it less likely that one will accidentally call
get_current_screen() when it doesn't exist.
Follow-up to [49080].
Props noahtallen.
See #51330.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51330#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list