Inappropriate admin menu items aren't necessarily removed
|Reported by:||Denis-de-Bernardy||Owned by:||ryan|
With MU going mainstream alongside an increasing number of plugins that disable admin menus, we're bound to see sites where the following lines of code no longer work:
if( !is_site_admin() ) unset( $submenu['plugins.php'] ); // always remove the plugin installer for regular users unset( $submenu['plugins.php'] ); // always remove the plugin editor unset( $submenu['themes.php'] ); // always remove the themes editor
instead, they should not be introduced in the first place. and ideally, we should add some kind of remove_menu_item() and remove_submenu_item() functionality.
Change History (14)
- Resolution fixed deleted
- Status changed from closed to reopened