[wp-trac] [WordPress Trac] #39800: current_item_{parent|ancestor} Not set for Post Type Archive Items

WordPress Trac noreply at wordpress.org
Mon Feb 6 21:15:08 UTC 2017


#39800: current_item_{parent|ancestor} Not set for Post Type Archive Items
--------------------------+------------------------------
 Reporter:  mrwweb        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  4.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by mrwweb):

 I think I tracked this down. For some reason, the `menu_item_parent`
 wasn't added to the `active_parent_item_ids` array, so it wouldn't get
 noticed later on.

 Realizing just now that `active_parent_object_ids` array doesn't make much
 sense in relation to post type archives, so maybe that shouldn't be in the
 patch.

 This is my first patch so all constructive feedback is greatly
 appreciated.

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


More information about the wp-trac mailing list