Changeset 47830
- Timestamp:
- 05/19/2020 11:28:10 PM (4 years ago)
- Location:
- branches/5.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
-
branches/5.4/src/wp-content/themes/twentytwenty/inc/template-tags.php
r47122 r47830 339 339 340 340 // Author. 341 if ( in_array( 'author', $post_meta, true ) ) {341 if ( post_type_supports( get_post_type( $post_id ), 'author' ) && in_array( 'author', $post_meta, true ) ) { 342 342 343 343 $has_meta = true; -
branches/5.4/src/wp-content/themes/twentytwenty/template-parts/content-cover.php
r47122 r47830 147 147 twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); 148 148 149 if ( is_single() ) {149 if ( post_type_supports( get_post_type( get_the_ID() ), 'author' ) && is_single() ) { 150 150 151 151 get_template_part( 'template-parts/entry-author-bio' ); -
branches/5.4/src/wp-content/themes/twentytwenty/template-parts/content.php
r46827 r47830 58 58 twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); 59 59 60 if ( is_single() ) {60 if ( post_type_supports( get_post_type( get_the_ID() ), 'author' ) && is_single() ) { 61 61 62 62 get_template_part( 'template-parts/entry-author-bio' );
Note: See TracChangeset
for help on using the changeset viewer.