WordPress.org

Make WordPress Core

Changeset 22134


Ignore:
Timestamp:
10/07/2012 11:33:35 PM (7 years ago)
Author:
nacin
Message:

Request WP_User objects when caling get_users() in XML-RPC's wp.getUsers method. see #18428.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r22108 r22134  
    913913        if ( in_array( 'all', $fields ) ) {
    914914            $_user = array_merge( $_user, $user_fields );
    915         }
    916         else {
     915        } else {
    917916            if ( in_array( 'basic', $fields ) ) {
    918917                $basic_fields = array( 'username', 'email', 'registered', 'display_name', 'nicename' );
     
    20932092            return new IXR_Error( 401, __( 'Sorry, you cannot list users.' ) );
    20942093
    2095         $query = array();
     2094        $query = array( 'fields' => 'all_with_meta' );
    20962095
    20972096        $query['number'] = ( isset( $filter['number'] ) ) ? absint( $filter['number'] ) : 50;
Note: See TracChangeset for help on using the changeset viewer.