WordPress.org

Make WordPress Core

Ticket #14010: plugins.php.15292.patch

File plugins.php.15292.patch, 550 bytes (added by jorbin, 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