[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
Mon Sep 15 15:56:02 UTC 2025


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

 * keywords:  has-patch needs-testing => has-patch has-unit-tests


Comment:

 @kshaner nice find. I've tested your patch and confirmed it fixes the
 issue.

 Here what I did:
 - activated a non-block theme such as Twenty Twelve
 - confirmed this is a bug in `trunk` with the classic menu editor
 - registered a custom post type with the slug `test_123`
 - created a new post of the `test_123` type
 - went to Appearance > Menus
 - clicked Screen Options at top right and enabled the "Test 123" post type
 - expanded the Test 123 panel in the menu editor
 - clicked Search
 - typed in some characters from the new post and saw the results

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


More information about the wp-trac mailing list