- Timestamp:
- 10/27/2021 06:42:13 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r51045 r51943 492 492 */ 493 493 function twentyfourteen_list_authors() { 494 $contributor_ids = get_users( 495 array( 496 'fields' => 'ID', 497 'orderby' => 'post_count', 498 'order' => 'DESC', 499 'who' => 'authors', 500 ) 501 ); 494 $args = array( 495 'fields' => 'ID', 496 'orderby' => 'post_count', 497 'order' => 'DESC', 498 'capability' => array( 'edit_posts' ), 499 ); 500 501 /** 502 * Filters query arguments for listing authors. 503 * 504 * @since 3.3 505 * 506 * @param array $args Query arguments. 507 */ 508 $args = apply_filters( 'twentyfourteen_list_authors_query_args', $args ); 509 510 $contributor_ids = get_users( $args ); 502 511 503 512 foreach ( $contributor_ids as $contributor_id ) :
Note: See TracChangeset
for help on using the changeset viewer.