Changeset 19934 for trunk/wp-admin/includes/ajax-actions.php
- Timestamp:
- 02/16/2012 05:12:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r19902 r19934 151 151 152 152 function wp_ajax_autocomplete_user() { 153 if ( !is_multisite() || !current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) || !is_super_admin() && apply_filters( 'autocomplete_users_for_site_admins', false ) ) 154 wp_die( -1 ); 153 if ( ! is_multisite() 154 || ! current_user_can( 'promote_users' ) 155 || wp_is_large_network( 'users' ) 156 || ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) ) 157 ) { 158 wp_die( -1 ); 159 } 155 160 156 161 $return = array();
Note: See TracChangeset
for help on using the changeset viewer.