Make WordPress Core

Ticket #39199: 39199.1.patch

File 39199.1.patch, 582 bytes (added by chandrapatel, 7 years ago)

Replaced is_super_admin() with current_user_can( 'manage_network' )

  • src/wp-includes/option.php

     
    799799                return;
    800800        }
    801801
    802         if ( is_super_admin() && ! is_user_member_of_blog() ) {
     802        if ( current_user_can( 'manage_network' ) && ! is_user_member_of_blog() ) {
    803803                return;
    804804        }
    805805
     
    963963                return false;
    964964        }
    965965
    966         if ( is_super_admin() && ! is_user_member_of_blog() ) {
     966        if ( current_user_can( 'manage_network' ) && ! is_user_member_of_blog() ) {
    967967                return;
    968968        }
    969969