[wp-trac] [WordPress Trac] #59839: Twenty Twenty-Four: register_block_pattern_category()'s slug/$category_name should be prefixed
WordPress Trac
noreply at wordpress.org
Thu Feb 8 13:30:56 UTC 2024
#59839: Twenty Twenty-Four: register_block_pattern_category()'s slug/$category_name
should be prefixed
---------------------------------------------+---------------------
Reporter: acosmin | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch commit | Focuses:
---------------------------------------------+---------------------
Comment (by poena):
Good find.
I have now had a look at the categories in Twenty Twenty-two:
I found that featured, footer, header, and query are also registered by
WordPress:
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/block-
patterns.php#L61
If the slug is updated, these categories show as duplicates on supported
WordPress versions.
We also can't remove them because then the categories would be missing on
older WordPress versions.
But we can update the final slug, {{{pages}}}.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59839#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list