[wp-trac] [WordPress Trac] #7214: Allow top-level menu page to use a slug, rather than filename

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 1 03:19:46 GMT 2008


#7214: Allow top-level menu page to use a slug, rather than filename
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  anonymous              
     Type:  defect          |      Status:  new                    
 Priority:  normal          |   Milestone:  2.6                    
Component:  Administration  |     Version:  2.6                    
 Severity:  normal          |    Keywords:  has-patch needs-testing
----------------------------+-----------------------------------------------
 This patch brings the add_menu_page() into align with the rest of the page
 addition functions, in that it allows the $file to be any string rather
 than specifically a filename.

 It does look a bit hackish in a sense, But i couldnt see any other way to
 do it.

 It certainly needs testing to check it doesnt adversly affect anything
 else, but it appears fine to me.

 I'll also attach a version of the menu-tester plugin which works after
 this patch (and doesnt work before it)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7214>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list