[wp-trac] [WordPress Trac] #57561: Update conditional logic for editor_styles

WordPress Trac noreply at wordpress.org
Mon Feb 20 21:12:15 UTC 2023


#57561: Update conditional logic for editor_styles
-----------------------------------------------+---------------------------
 Reporter:  mikachan                           |       Owner:
                                               |  hellofromTonya
     Type:  defect (bug)                       |      Status:  closed
 Priority:  normal                             |   Milestone:  6.2
Component:  Script Loader                      |     Version:  6.1
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  has-patch has-testing-info commit  |     Focuses:
-----------------------------------------------+---------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55368" 55368]:
 {{{
 #!CommitTicketReference repository="" revision="55368"
 Editor: Fix 'wp-block-library-theme' style enqueue conditions.

 Fixes the conditions for when to enqueue the opinionated block styles
 (i.e. `'wp-block-library-theme'` stylesheet):

 * the theme adds `'wp-block-styles'` theme support;
 * and no editor styles are declared.

 This resolves an issue with themes that do not add the `'wp-block-styles'`
 theme support while not impacting themes that do.

 Follow-up to [53419], [52069], [50761], [44157].

 Props mikachan, costdev, glendaviesnz, hellofromTonya, jffng, mamaduka,
 ndiego, poena, sannevndrmeulen, scruffian.
 Fixes #57561.
 }}}

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


More information about the wp-trac mailing list