[wp-trac] [WordPress Trac] #59583: Patterns: `theme` attribute not inserted in Template Part blocks
WordPress Trac
noreply at wordpress.org
Mon Nov 6 12:12:20 UTC 2023
#59583: Patterns: `theme` attribute not inserted in Template Part blocks
--------------------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: defect (bug) | Status: closed
Priority: high | Milestone: 6.4
Component: General | Version:
Severity: major | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+------------------------------
Comment (by gziolo):
There was a bug fix in the editor to ensure that patterns work correctly
with the post type templates:
https://github.com/WordPress/gutenberg/pull/55858. It's very similar to
what we observed when removing the logic on the server to inject the theme
attribute in template parts used with patterns. I'm inclined to revisit
the implementation on the client in the editor to ensure that the default
theme name is always properly read so we no longer need to inject the same
value in the REST API endpoint.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59583#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list