[wp-trac] [WordPress Trac] #63633: Post Types with numeric characters in the slug are not searchable within the nav menu

WordPress Trac noreply at wordpress.org
Wed Sep 17 05:46:55 UTC 2025


#63633: Post Types with numeric characters in the slug are not searchable within
the nav menu
--------------------------------------+--------------------------
 Reporter:  kshaner                   |       Owner:  westonruter
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  Menus                     |     Version:  3.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60775" 60775]:
 {{{
 #!CommitTicketReference repository="" revision="60775"
 Menus: Fix searchability of post types which contain numeric characters.

 The regular expression needs to correspond to how a post type slug is
 sanitized by `sanitize_key()` in `register_post_type()`.

 Props kshaner, mindctrl, oglekler.
 Fixes #63633.
 }}}

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


More information about the wp-trac mailing list