WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/30/2012 09:04:48 PM (8 years ago)
Author:
nacin
Message:

Clean up cap checks for autocompletes for sites and users in a network. see #19810.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r19934 r20332  
    179179wp_enqueue_script('wp-ajax-response');
    180180wp_enqueue_script('user-profile');
    181 if ( is_multisite()
    182     && current_user_can( 'promote_users' )
    183     && ! wp_is_large_network( 'users' )
     181
     182if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' )
    184183    && ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) )
    185184) {
Note: See TracChangeset for help on using the changeset viewer.