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/network/users.php

    r20279 r20332  
    246246);
    247247
    248 if ( is_multisite()
    249     && current_user_can( 'promote_users' )
    250     && ! wp_is_large_network( 'users' )
    251     && is_super_admin()
    252 ) {
     248if ( ! wp_is_large_network( 'users' ) )
    253249    wp_enqueue_script( 'user-search' );
    254 }
    255250
    256251require_once( '../admin-header.php' );
Note: See TracChangeset for help on using the changeset viewer.