Make WordPress Core

Changeset 32811


Ignore:
Timestamp:
06/17/2015 12:02:08 AM (9 years ago)
Author:
johnbillion
Message:

Ensure the create_users capability check checks the super admin status of the user in question, rather than the current user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r32771 r32811  
    13771377        if ( !is_multisite() )
    13781378            $caps[] = $cap;
    1379         elseif ( is_super_admin() || get_site_option( 'add_new_users' ) )
     1379        elseif ( is_super_admin( $user_id ) || get_site_option( 'add_new_users' ) )
    13801380            $caps[] = $cap;
    13811381        else
Note: See TracChangeset for help on using the changeset viewer.