Make WordPress Core

Changeset 15567


Ignore:
Timestamp:
09/05/2010 02:49:52 PM (14 years ago)
Author:
scribu
Message:

fix wp_getAuthors in xmlrpc.php. See #14572 and [15566]

Location:
trunk
Files:
4 edited

Legend:

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

    r15305 r15567  
    668668    if ( !is_multisite() ) {
    669669        $site_admins = array( $site_user->user_login );
    670         $users = get_users_of_blog();
     670        $users = get_users();
    671671        if ( $users ) {
    672672            foreach ( $users as $user ) {
  • trunk/wp-includes/author-template.php

    r15148 r15567  
    282282
    283283    /** @todo Move select to get_authors(). */
    284     $users = get_users_of_blog();
     284    $users = get_users();
    285285    $author_ids = array();
    286286    foreach ( (array) $users as $user )
  • trunk/wp-includes/user.php

    r15566 r15567  
    573573 */
    574574function get_users_of_blog( $id = '' ) {
    575     global $wpdb, $blog_id;
     575    global $blog_id;
    576576
    577577    if ( empty($id) )
  • trunk/xmlrpc.php

    r15557 r15567  
    835835
    836836        $authors = array();
    837         foreach ( (array) get_users_of_blog() as $row ) {
     837        foreach ( get_users() as $user_id => $user_object ) {
    838838            $authors[] = array(
    839                 "user_id"       => $row->user_id,
    840                 "user_login"    => $row->user_login,
    841                 "display_name"  => $row->display_name
     839                "user_id"       => $user_id,
     840                "user_login"    => $user_object->user_login,
     841                "display_name"  => $user_object->display_name
    842842            );
    843843        }
    844844
    845         return($authors);
     845        return $authors;
    846846    }
    847847
Note: See TracChangeset for help on using the changeset viewer.