[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 19:30:30 UTC 2024


#59839: Twenty Twenty-Four: register_block_pattern_category()'s slug/$category_name
should be prefixed
---------------------------------------------+-----------------------------
 Reporter:  acosmin                          |       Owner:  SergeyBiryukov
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.5
Component:  Bundled Theme                    |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57569" 57569]:
 {{{
 #!CommitTicketReference repository="" revision="57569"
 Twenty Twenty-Two: Prefix the `pages` block pattern category name.

 If a plugin also registers the category name `pages` 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 poena, swissspidy, shailu25.
 Fixes #59839.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59839#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list