WordPress.org

Make WordPress Core

Ticket #14012: menu-perms.diff

File menu-perms.diff, 551 bytes (added by wpmuguru, 4 years ago)
  • wp-admin/plugins.php

     
    1313 
    1414        if ( empty($menu_perms['plugins']) && ! is_super_admin() ) 
    1515                wp_die( __( 'Cheatin’ uh?' ) ); 
    16         else if ( $menu_perms['plugins'] != 1 && is_super_admin() ) 
     16        else if ( ( empty( $menu_perms['plugins'] ) || $menu_perms['plugins'] != 1 ) && is_super_admin() ) 
    1717                add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' ); 
    1818} 
    1919