WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 11 days 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:
PR Number:

Description

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 2 years ago.

Download all attachments as: .zip

Change History (5)

#1 @sebastian.pisula
2 years ago

  • Keywords has-patch added

#2 @audrasjb
12 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 12 months ago by audrasjb (next)

#3 @audrasjb
4 weeks ago

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

#4 @audrasjb
11 days 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.