Make WordPress Core

Opened 3 years ago

Last modified 9 months ago

#43076 assigned defect (bug)

current-menu-item for archive menu item on singular page

Reported by: sebastian.pisula Owned by: audrasjb
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Menus Keywords: has-patch reporter-feedback needs-refresh
Focuses: Cc:


If I have CPT with archive and singular page and I add to menu url to archive and I go to singular page of CPT then should be add current-menu-item to menu item of archive

Attachments (1)

43076.patch (782 bytes) - added by sebastian.pisula 3 years ago.

Download all attachments as: .zip

Change History (5)

#1 @sebastian.pisula
3 years ago

  • Keywords has-patch added

#2 @audrasjb
21 months ago

  • Keywords reporter-feedback added
  • Owner set to audrasjb
  • Status changed from new to reviewing

Hi and thanks for the ticket and you patch,

I think the patch will need some refresh and some correction to fit better with WPCS. However, I'm not sure it's 100% relevant to add current-menu-item class to archive page when we are in a singular Post: the Post can appear in different taxonomy terms and the post can also appear in the menu items.

Version 0, edited 21 months ago by audrasjb (next)

#3 @audrasjb
10 months ago

  • Keywords needs-refresh added
  • Milestone changed from Awaiting Review to 5.4
  • Status changed from reviewing to accepted

#4 @audrasjb
9 months ago

  • Milestone changed from 5.4 to Future Release
  • Status changed from accepted to assigned

Moving to future release and adding reporter feedback keyword (see comment 2).

Note: See TracTickets for help on using tickets.