[wp-trac] [WordPress Trac] #15777: Add a filter to allow a menu item to be manually selected

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 11 19:02:47 UTC 2010


#15777: Add a filter to allow a menu item to be manually selected
---------------------------+------------------------------------------------
 Reporter:  aaroncampbell  |       Owner:                 
     Type:  enhancement    |      Status:  new            
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Menus          |     Version:  3.0            
 Severity:  normal         |    Keywords:                 
---------------------------+------------------------------------------------

Comment(by aaroncampbell):

 The patch attached works for me, but there are some limitations.  The
 biggest is that since I added the filter toward the end of the if/elseif,
 it only works to select an item if it's not already been selected, but
 cannot force an item to NOT be selected.  Maybe it should be moved before
 the current logic?

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


More information about the wp-trac mailing list