[wp-trac] [WordPress Trac] #16015: show_in_menu has some menu selection issues

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 29 10:01:54 UTC 2010


#16015: show_in_menu has some menu selection issues
-------------------------------------+------------------
 Reporter:  nacin                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.1
Component:  Post Types               |     Version:  3.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------
Changes (by garyc40):

 * keywords:   => has-patch needs-testing


Comment:

 My patch is not very elegant. It loops through the submenu items to check
 if {{{$submenu_file == $sub_item[2]}}} . This is the same check that
 happens way below, where {{{'current'}}} class is attached to current sub-
 item.

 I kind of dislike it, but it works.

 Any idea how to fix this without having to refactoring the way
 {{{_wp_menu_output}}} works?

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


More information about the wp-trac mailing list