[wp-trac] [WordPress Trac] #17077: Page parent li elements in nav menus not always given current-page-parent class

WordPress Trac noreply at wordpress.org
Thu Jul 18 21:10:05 UTC 2013


#17077: Page parent li elements in nav menus not always given current-page-parent
class
--------------------------+------------------------------
 Reporter:  andymacb      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1
 Severity:  trivial       |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by codeclarified):

 Patch adds check inside _wp_menu_item_classes_by_context() to see if
 $queried_object->post_parent matches $parent_item->object_id

 Also updated the conditional check for applying the classes for backward
 compatibility. Instead of checking for current-menu-* now checking for
 current-page-*, seems more correct, however I'm not sure if the -menu-
 classes were selected for a legitimate reason

--
Ticket URL: <http://core.trac.wordpress.org/ticket/17077#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list