WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/09/2010 09:45:06 PM (9 years ago)
Author:
ryan
Message:

Always allow super admins to have create_users. see #15357

File:
1 edited

Legend:

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

    r16209 r16264  
    989989        break;
    990990    case 'create_users':
    991         if ( is_multisite() && !get_site_option( 'add_new_users' ) )
    992             $caps[] = 'do_not_allow';
    993         else
     991        if ( !is_multisite() || is_super_admin() || get_site_option( 'add_new_users' ) )
    994992            $caps[] = $cap;
    995993        break;
Note: See TracChangeset for help on using the changeset viewer.