[wp-trac] [WordPress Trac] #51330: Allow more granular control over enqueuing editor scripts and styles

WordPress Trac noreply at wordpress.org
Thu Sep 17 14:18:03 UTC 2020


#51330: Allow more granular control over enqueuing editor scripts and styles
-------------------------+------------------------------
 Reporter:  zieladam     |       Owner:  zieladam
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Description changed by zieladam:

Old description:

> As discussed in https://github.com/WordPress/gutenberg/issues/15644,
> block scripts and styles are being loaded only when
> `$current_screen->is_block_editor() === true`. The experimental widgets
> and navigation editor should provide access to custom block types but
> should not use a "block editor screen" mode which comes with more than
> just scripts and styles. In my opinion, having a way to control just the
> script&styles enqueuing aspect would be a good solution here.

New description:

 As discussed in https://github.com/WordPress/gutenberg/issues/15644, block
 scripts and styles are being loaded only when
 `$current_screen->is_block_editor() === true`. The experimental widgets
 and navigation editor should provide access to custom block types but
 should not use a "block editor screen" mode which comes with more than
 just scripts and styles. In my opinion, having a way to control just the
 script&styles enqueuing aspect would be a good solution here.

 See proposed solution in https://github.com/WordPress/wordpress-
 develop/pull/537

--

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


More information about the wp-trac mailing list