[wp-trac] [WordPress Trac] #13543: menu selected page class problem

WordPress Trac wp-trac at lists.automattic.com
Sat May 29 01:18:07 UTC 2010


#13543: menu selected page class problem
--------------------------+-------------------------------------------------
 Reporter:  Angeloverona  |        Owner:  filosofo
     Type:  defect (bug)  |       Status:  closed  
 Priority:  normal        |    Milestone:  3.0     
Component:  Menus         |      Version:  3.0     
 Severity:  normal        |   Resolution:  fixed   
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by nacin):

 It occurred to me that we didn't mention the special property of a custom
 link menu item. WordPress does a URL comparison and marks them as current-
 menu-item if they match.

 This doesn't work for hierarchy (no parent etc. classes) but in some cases
 can provide you what you need or can lead you in a direction for the hook.

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


More information about the wp-trac mailing list