[wp-trac] [WordPress Trac] #3533: Admin pages created by Plugins get permissions errors

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 6 21:49:27 GMT 2007


#3533: Admin pages created by Plugins get permissions errors
----------------------------+-----------------------------------------------
 Reporter:  mattyrob        |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  high            |   Milestone:  2.0.7    
Component:  Administration  |     Version:  2.0.6    
 Severity:  major           |    Keywords:           
----------------------------+-----------------------------------------------
 In my plugin I have the following line:

 add_submenu_page('profile.php', __('Subscriptions', 'subscribe2'),
 __('Subscriptions', 'subscribe2'), "read", __FILE__, array(&$this,
 'user_menu'));

 This adds a submenu to profile.php so users can manage email
 subscriptions.

 Since 2.0.6 it is no longer working - the menu is available but clicking
 on it gives an error message:

 "You do not have sufficient permissions to access this page."

 From my back tracking through the WP code, it appears that the issue
 arises in the user_can_access_admin_page() function. I haven't figured out
 a fix other than hacking out the if statement at the end of menu.php.

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


More information about the wp-trac mailing list