[wp-trac] [WordPress Trac] #53175: Block Editor: Include the theme.json infrastructure code and support

WordPress Trac noreply at wordpress.org
Thu Sep 16 18:03:19 UTC 2021


#53175: Block Editor: Include the theme.json infrastructure code and support
-------------------------------------------------+-------------------------
 Reporter:  youknowriad                          |       Owner:
                                                 |  youknowriad
     Type:  task (blessed)                       |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-      |     Focuses:
  major commit dev-reviewed                      |
-------------------------------------------------+-------------------------

Comment (by jorgefilipecosta):

 In [changeset:"51819" 51819]:
 {{{
 #!CommitTicketReference repository="" revision="51819"
 Block editor: Cache global stylesheet by theme key.

 Global styles are used in a few different contexts (front, editor,
 customizer, the theme directory). In the last two contexts, it's important
 that switching themes immediately refreshes the global stylesheet, to
 avoid situations in which the styles of the previous theme load with the
 new one. This was brought up at WordPress/gutenberg#34531 (customizer) and
 at meta.trac.wordpress.org/ticket/5818 (theme directory).
 This commit makes sure the stylesheet is regenerated upon switching
 themes.

 Props oandregal, dd32.
 See #53175.
 }}}

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


More information about the wp-trac mailing list