[wp-trac] [WordPress Trac] #63261: Menu items incorrectly marked as current when page and taxonomy share the same object_id

WordPress Trac noreply at wordpress.org
Tue May 20 17:15:08 UTC 2025


#63261: Menu items incorrectly marked as current when page and taxonomy share the
same object_id
-----------------------------------------+----------------------------
 Reporter:  nuadagency                   |       Owner:  audrasjb
     Type:  defect (bug)                 |      Status:  assigned
 Priority:  normal                       |   Milestone:  6.9
Component:  Menus                        |     Version:  6.7.2
 Severity:  normal                       |  Resolution:
 Keywords:  reporter-feedback has-patch  |     Focuses:  accessibility
-----------------------------------------+----------------------------
Changes (by SirLouen):

 * keywords:  needs-testing => reporter-feedback has-patch


Comment:

 == Reproduction Report
 === Description
 ❌ This report can't validate that the issue can be reproduced.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.5
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 136.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty 2.9
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Reproduction Steps
 1. I create a page and check the ID. In this case `id=6`
 2. I create several Categories, until I get one with `cat_id=6`
 3. I add both elements to a Menu
 4. ❌ Going into each element doesn't cause both elements having `current-
 menu-item`, `aria-current="page"` as commented in the OP
 - Check the screencast for more info

 === Actual Results
 1.  ❌ Error condition is not occurring.

 === Additional Notes
 It appears that some people have been able to reproduce this. I'm not
 using WooCommerce because it's out of scope.
 So I believe that simply using a post_type='post' and a regular category
 should have triggered the same error.
 @nuadagency can you check my screencast + instructions and suggest how I
 can better reproduce this?

 === Supplemental Artifacts
 Screencast: https://streamable.com/7mx8jf

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


More information about the wp-trac mailing list