[wpmu-trac] [WordPress MU Trac] #223: Site Admin sub menu issue

WordPress MU Trac wpmu-trac at lists.automattic.com
Sun Jan 14 12:50:48 GMT 2007


#223: Site Admin sub menu issue
------------------------+---------------------------------------------------
 Reporter:  dizzy99     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  WPMU 1.0
Component:  component1  |     Version:  1.0     
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 On upgrading to trunk revision 840 any MU plugins that hooks to the sub
 menu of '''Site Admin''' causes an error.

 For example, the '''wpmu-ban.php''' module hooks its menu as


 {{{
 function ban_menu() {
         if (is_site_admin()) {
                         add_submenu_page('wpmu-admin.php', __('Banned'),
 __('Banned'), 0, 'banned', 'ban_options');
                 }
 }
 }}}

 This results in a non function '''Site Admin panel''' with an error that
 the plugin cannot be found.

 The url Site Admin url also changes from

 {{{
 http://nptgroups.co.uk/wp-admin/wpmu-blogs.php
 }}}

 to

 {{{
 http://nptgroups.co.uk/wp-admin/admin.php?page=banned
 }}}

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


More information about the wpmu-trac mailing list