WordPress.org

Make WordPress Core

Ticket #14202: check-plugins-array-key.patch

File check-plugins-array-key.patch, 492 bytes (added by SergeyBiryukov, 5 years ago)
  • 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']) && is_super_admin() ) 
    1717                add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' ); 
    1818} 
    1919