[wp-trac] [WordPress Trac] #56736: Block Styles in theme.json do not appear in the Editor or Frontend
WordPress Trac
noreply at wordpress.org
Thu Oct 6 18:00:36 UTC 2022
#56736: Block Styles in theme.json do not appear in the Editor or Frontend
-------------------------------------------------+-------------------------
Reporter: Bernhard Reiter | Owner:
| davidbaumwald
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Editor | Version: trunk
Severity: major | Resolution: fixed
Keywords: has-patch commit assigned-for- | Focuses:
commit |
-------------------------------------------------+-------------------------
Changes (by davidbaumwald):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"54399" 54399]:
{{{
#!CommitTicketReference repository="" revision="54399"
Editor: Ensure block styles in `theme.json` are rendered.
This change removes the caching of theme data in
`WP_Theme_JSON_Resolver::get_theme_data()`, instead freshly compiling
theme data on each call.
Also, to prevent any performance degradation by the removal, the file
contents of `theme.json` files are now cached in
`WP_Theme_JSON_Resolver::read_json_file()`, preventing multiple filesystem
reads.
Follow-up to [54385].
Props ndiego, bph, mikachan, andrewserong, oandregal, cbravobernal,
bernhard-reiter, aristath.
Fixes #56736.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56736#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list