[wp-trac] [WordPress Trac] #38486: current_page_parent class wrongly added to menu item

WordPress Trac noreply at wordpress.org
Tue Oct 25 15:46:21 UTC 2016


#38486: current_page_parent class wrongly added to menu item
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If the current page being viewed is either of the following:

  - a custom post type archive
  - a custom post type single item

 a {{{current_page_parent}}} class is added to the menu item assigned as
 the {{{page_for_posts}}}.

 I believe this is wrong because the page assigned as the
 {{{page_for_posts}}} is associated with ''posts'' only. It has nothing to
 do with CPTs.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38486>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list