diff --git a/wp-content/themes/twentytwenty/inc/template-tags.php b/wp-content/themes/twentytwenty/inc/template-tags.php index 95c2e6070b..1f09b966a9 100644 --- a/wp-content/themes/twentytwenty/inc/template-tags.php +++ b/wp-content/themes/twentytwenty/inc/template-tags.php @@ -338,7 +338,7 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location ); // Author. - if ( in_array( 'author', $post_meta, true ) ) { + if ( post_type_supports( get_post_type( $post_id ), 'author' ) && in_array( 'author', $post_meta, true ) ) { $has_meta = true; ?> diff --git a/wp-content/themes/twentytwenty/template-parts/content-cover.php b/wp-content/themes/twentytwenty/template-parts/content-cover.php index 883032e5f3..f1150cb1c5 100644 --- a/wp-content/themes/twentytwenty/template-parts/content-cover.php +++ b/wp-content/themes/twentytwenty/template-parts/content-cover.php @@ -146,7 +146,7 @@ // Single bottom post meta. twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); - if ( is_single() ) { + if ( post_type_supports( get_post_type( get_the_ID() ), 'author' ) && is_single() ) { get_template_part( 'template-parts/entry-author-bio' ); diff --git a/wp-content/themes/twentytwenty/template-parts/content.php b/wp-content/themes/twentytwenty/template-parts/content.php index 468af0c7e8..ed0cf5173a 100644 --- a/wp-content/themes/twentytwenty/template-parts/content.php +++ b/wp-content/themes/twentytwenty/template-parts/content.php @@ -57,7 +57,7 @@ // Single bottom post meta. twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' ); - if ( is_single() ) { + if ( post_type_supports( get_post_type( get_the_ID() ), 'author' ) && is_single() ) { get_template_part( 'template-parts/entry-author-bio' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c8245ae3f..cbd0906bda 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4.2-alpha-47829'; +$wp_version = '5.4.2-alpha-47830'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.