Changeset 17100 for trunk/wp-includes/author-template.php
- Timestamp:
- 12/21/2010 04:27:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r16425 r17100 285 285 $return = ''; 286 286 287 $authors = get_users( wp_array_slice_assoc( $args, array( 'orderby', 'order', 'number' ) ) ); 287 $query_args = wp_array_slice_assoc( $args, array( 'orderby', 'order', 'number' ) ); 288 $query_args['fields'] = 'ids'; 289 $authors = get_users( $query_args ); 288 290 289 291 $author_count = array(); … … 291 293 $author_count[$row->post_author] = $row->count; 292 294 293 foreach ( $authors as $author ) { 295 foreach ( $authors as $author_id ) { 296 $author = get_userdata( $author_id ); 294 297 295 298 if ( $exclude_admin && 'admin' == $author->display_name )
Note: See TracChangeset
for help on using the changeset viewer.