WordPress.org

Make WordPress Core

Ticket #24680: user.php.diff

File user.php.diff, 428 bytes (added by sphoid, 10 months ago)

Patch to add user_login to fields argument (wp-includes/user.php)

  • user.php

     
    10321032        extract( $r, EXTR_SKIP ); 
    10331033 
    10341034        $query_args = wp_array_slice_assoc( $r, array( 'blog_id', 'include', 'exclude', 'orderby', 'order', 'who' ) ); 
    1035         $query_args['fields'] = array( 'ID', $show ); 
     1035        $query_args['fields'] = array( 'ID', 'user_login', $show ); 
    10361036        $users = get_users( $query_args ); 
    10371037 
    10381038        $output = '';