[wp-trac] [WordPress Trac] #2696: add_menu_page doesn't respect "access level".

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 26 12:38:09 GMT 2006


#2696: add_menu_page doesn't respect "access level".
----------------------------+-----------------------------------------------
       Id:  2696            |      Status:  new                     
Component:  Administration  |    Modified:  Wed Apr 26 12:38:09 2006
 Severity:  major           |   Milestone:                          
 Priority:  high            |     Version:  2.1                     
    Owner:  anonymous       |    Reporter:  denney                  
----------------------------+-----------------------------------------------
 I'm having the problem of my plugin toplevel menu being displayed
 regardless of the users access level.

 I have the access level set to 10 in the "add_menu_page()" call but
 logging in as a standard subscriber still displays the menu and clicking
 on it shows the content of the menu item.

 Any submenu's of the new toplevel menu aren't being displayed which is
 correct but to me, not even the menu should be displayed.

 My function call is as follows:

 "add_menu_page('Kavelier', 'Kavelier', 10, __FILE__,
 'kav_plugin_options');"

 This is using revision 3751.

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


More information about the wp-trac mailing list