[wp-trac] Re: [WordPress Trac] #2696: add_menu_page doesn't respect
 "access level".
    WordPress Trac 
    wp-trac at lists.automattic.com
       
    Wed May 10 22:14:36 GMT 2006
    
    
  
#2696: add_menu_page doesn't respect "access level".
----------------------------+-----------------------------------------------
       Id:  2696            |      Status:  reopened                
Component:  Administration  |    Modified:  Wed May 10 22:14:36 2006
 Severity:  normal          |   Milestone:                          
 Priority:  normal          |     Version:  2.1                     
    Owner:  westi           |    Reporter:  denney                  
----------------------------+-----------------------------------------------
Changes (by ryanscheuermann):
  * resolution:  fixed =>
  * status:  closed => reopened
Comment:
 This also fixes #2610.  But I'm now having a problem where plugin pages
 aren't showing up.
 I use add_submenu_page to add a plugin page under "edit.php".  Like so:
 {{{
 add_submenu_page('edit.php', 'Do Stuff', 'Do Stuff', 'do_stuff_page',
 'do_stuff', 'my_do_stuff_function');
 }}}
 But when I take away the "edit_posts" privelege (and thus removing
 "edit.php" as the parent), my plugin page links are changing from "wp-
 admin/edit.php?page=do_stuff_page" to "wp-admin/do_stuff_page" on the
 admin menu.  And of course, I get a big 404 when clicking on them.
-- 
Ticket URL: <http://trac.wordpress.org/ticket/2696>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
    
    
More information about the wp-trac
mailing list