WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/30/2012 09:04:48 PM (9 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/users.php

    r20279 r20332  
    340340    }
    341341
    342     if ( is_multisite()
    343         && current_user_can( 'promote_users' )
    344         && ! wp_is_large_network( 'users' )
     342    if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' )
    345343        && ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) )
    346344    ) {
Note: See TracChangeset for help on using the changeset viewer.