[wp-trac] [WordPress Trac] #13912: Not aware of post_type so "wp-has-current-submenu" get assigned incorrectly

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 15 20:48:09 UTC 2010


#13912: Not aware of post_type so "wp-has-current-submenu" get assigned incorrectly
--------------------------+-------------------------------------------------
 Reporter:  benjitastic   |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------

Comment(by nacin):

 Replying to [comment:2 benjitastic]:
 It would be tricky to have a unique menu_slug for each since there is not
 a defined number of post_type and I would like every sub nav item to point
 to the main .php plugin file - '__FILE__'.

 That's not what __FILE__ is for. That's what your callback is for.

 It would be easy to have a menu_slug that is unique, simply use the
 post_type and add a prefix or something.

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


More information about the wp-trac mailing list