[wp-trac] [WordPress Trac] #54782: Default presets in use by default themes need to be updated

WordPress Trac noreply at wordpress.org
Mon Jan 10 18:31:26 UTC 2022


#54782: Default presets in use by default themes need to be updated
--------------------------+-------------------------------
 Reporter:  oandregal     |       Owner:  jorgefilipecosta
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-------------------------------

Comment (by jorgefilipecosta):

 In [changeset:"52550" 52550]:
 {{{
 #!CommitTicketReference repository="" revision="52550"
 Fix: Update some default presets in use by default themes to the new
 format.

 Themes that use the same preset slugs as WordPress uses need to be
 updated.
 From the devnote https://make.wordpress.org/core/2022/01/08/updates-for-
 settings-styles-and-theme-json/
 The CSS for some of the presets defined by WordPress (font sizes, colors,
 and gradients) was loaded twice for most themes in WordPress 5.8: in the
 block-library stylesheet plus in the global stylesheet. Additionally,
 there were slight differences in the CSS in both places.
 In WordPress 5.9 those were consolidated into a single place, the global
 stylesheet whose name is global-styles-inline-css that is now loaded for
 all themes in the front-end.
 For themes to override the default values they can use the theme.json and
 provide the same slug. Themes that do not use a theme.json can still
 override the default values by enqueuing some CSS that sets the
 corresponding CSS Custom Property. This commit does the second for the
 twenty twenty theme.

 Props oandregal.
 Merges [52549] to the 5.9 branch.
 Fixes #54782.
 }}}

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


More information about the wp-trac mailing list