Make WordPress Core


Ignore:
Timestamp:
02/10/2012 08:45:17 AM (12 years ago)
Author:
markjaquith
Message:

Autocomplete for add-user screens in multisite. props boonebgorges, Japh, DrewAPicture, PeteMall, nacin, koopersmith, markjaquith. see #19810.

File:
1 edited

Legend:

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

    r19712 r19897  
    179179wp_enqueue_script('wp-ajax-response');
    180180wp_enqueue_script('user-profile');
    181 
    182 require_once ('admin-header.php');
     181if ( is_multisite() && current_user_can( 'promote_users' ) && !wp_is_large_network( 'users' ) && is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) )
     182    wp_enqueue_script( 'user-search' );
     183
     184require_once( 'admin-header.php' );
    183185
    184186if ( isset($_GET['update']) ) {
Note: See TracChangeset for help on using the changeset viewer.