mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Remove dead code. Props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4bb09d0382
commit
ea91074608
@ -11,7 +11,7 @@ require_once('./admin.php');
|
||||
if ( is_multisite() ) {
|
||||
$menu_perms = get_site_option( 'menu_items', array() );
|
||||
|
||||
if ( empty($menu_perms['plugins'] ) || $menu_perms['plugins'] != 1 ) {
|
||||
if ( empty( $menu_perms['plugins'] ) ) {
|
||||
if ( ! is_super_admin() )
|
||||
wp_die( __( 'Cheatin’ uh?' ) );
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user