[wpmu-trac] [WordPress MU Trac] #179: Menu "Options" for subscribers and another roles

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Oct 12 15:23:32 GMT 2006


#179: Menu "Options" for subscribers and another roles
-------------------------+--------------------------------------------------
 Reporter:  dan-daemon   |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  normal       |   Milestone:  WPMU 1.0
Component:  component1   |     Version:  1.0     
 Severity:  normal       |    Keywords:          
-------------------------+--------------------------------------------------
 Hi,

 Seems you need to change some lines in the /wp-admin/menu.php,

 line #29: $menu[40] = array(__('Options'), 'manage_options', 'options-
 general.php');

 to

 line #29: if ( current_user_can('manage_options') ) $menu[40] =
 array(__('Options'), 'manage_options', 'options-general.php');


 At least it will hide menu item "Options" for some roles. Now it redirects
 to error page which does not have a design of main site and does not have
 a design to admin area... Do not looks good :)

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/179>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list