Make WordPress Core


Ignore:
Timestamp:
02/16/2012 05:12:10 PM (12 years ago)
Author:
duck_
Message:

Correct faulty logic when dealing with autocomplete_users_for_site_admins, and break logic into multiple lines. See #19810.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ajax-actions.php

    r19902 r19934  
    151151
    152152function 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    }
    155160   
    156161    $return = array();
Note: See TracChangeset for help on using the changeset viewer.