[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:28:02 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:
--------------------------+-------------------------------
Changes (by jorgefilipecosta):
* owner: (none) => jorgefilipecosta
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52549" 52549]:
{{{
#!CommitTicketReference repository="" revision="52549"
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.
Fixes #54782.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54782#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list