[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
Wed Feb 7 19:43:24 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 SergeyBiryukov):
In [changeset:"57555" 57555]:
{{{
#!CommitTicketReference repository="" revision="57555"
Twenty Twenty-Four: Prefix the block pattern category name.
If a plugin also registers the category name `page` in an `init` hook that
runs after the theme's, it can override the label and description
unintentionally.
With a prefix, extenders can still override it, but it would be
intentional.
Props shailu25, poena, acosmin, harshgajipara, swissspidy.
See #59839.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59839#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list