[wp-trac] [WordPress Trac] #56736: Block Styles in theme.json do not appear in the Editor or Frontend
WordPress Trac
noreply at wordpress.org
Wed Oct 5 11:41:52 UTC 2022
#56736: Block Styles in theme.json do not appear in the Editor or Frontend
-----------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: major | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by Bernhard Reiter):
While working on https://github.com/WordPress/gutenberg/issues/44434
(which is somewhat related), we've identified `WP_Theme_JSON_Resolver`'s
caching of theme data as the problem. That caching happens early and
sanitizes block-specific styling found in `theme.json` against the list of
registered blocks. However, this can happen before all blocks are
registered. As a consequence, some styling is scrapped.
@cbravobernal has started working on a fix in https://github.com/WordPress
/wordpress-develop/pull/3401.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56736#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list