WordPress.org

Make WordPress Core

Ticket #48803: 48803.diff

File 48803.diff, 672 bytes (added by donmhico, 14 months ago)
  • src/wp-content/themes/twentytwenty/inc/template-tags.php

    diff --git src/wp-content/themes/twentytwenty/inc/template-tags.php src/wp-content/themes/twentytwenty/inc/template-tags.php
    index d220875702..7a31d6a2e5 100644
    function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) 
    332332                                do_action( 'twentytwenty_start_of_post_meta_list', $post_id );
    333333
    334334                                // Author.
    335                                 if ( in_array( 'author', $post_meta, true ) ) {
     335                                if ( post_type_supports( get_post_type( $post_id ), 'author' ) && in_array( 'author', $post_meta, true ) ) {
    336336
    337337                                        $has_meta = true;
    338338                                        ?>