Changeset 45235 for trunk/src/wp-includes/author-template.php
- Timestamp:
- 04/17/2019 02:49:49 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r45086 r45235 443 443 } 444 444 foreach ( $authors as $author_id ) { 445 $posts = isset( $author_count[ $author_id ] ) ? $author_count[ $author_id ] : 0; 446 447 if ( ! $posts && $args['hide_empty'] ) { 448 continue; 449 } 450 445 451 $author = get_userdata( $author_id ); 446 452 447 if ( $args['exclude_admin'] && 'admin' == $author->display_name ) { 448 continue; 449 } 450 451 $posts = isset( $author_count[ $author->ID ] ) ? $author_count[ $author->ID ] : 0; 452 453 if ( ! $posts && $args['hide_empty'] ) { 453 if ( $args['exclude_admin'] && 'admin' === $author->display_name ) { 454 454 continue; 455 455 }
Note: See TracChangeset
for help on using the changeset viewer.