diff --git src/wp-content/themes/twentyseventeen/header.php src/wp-content/themes/twentyseventeen/header.php
index 30d7d2a7c2..470aac6ba7 100644
|
|
|
42 | 42 | |
43 | 43 | <?php |
44 | 44 | // If a regular post or page, and not the front page, show the featured image. |
45 | | if ( has_post_thumbnail() && ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) ) : |
| 45 | if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) ) : |
46 | 46 | echo '<div class="single-featured-image-header">'; |
47 | | the_post_thumbnail( 'twentyseventeen-featured-image' ); |
| 47 | echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' ); |
48 | 48 | echo '</div><!-- .single-featured-image-header -->'; |
49 | 49 | endif; |
50 | 50 | ?> |