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

WordPress Trac noreply at wordpress.org
Wed Nov 16 23:49:24 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        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by henry.wright):

 * keywords:  needs-patch => has-patch


Comment:

 @welcher sure!

 Attached is 38486.diff, which will ensure the current_page_parent class
 doesn't get added to the static home page link if the query is for a
 custom post type single item or archive.

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


More information about the wp-trac mailing list