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() ) ) ) : |
| 44 | |
| 45 | /* |
| 46 | * If a regular post or page, and not the front page, show the featured image. |
| 47 | * Using get_queried_object_id() here since the $post global may not be set before a call to the_post(). |
| 48 | */ |
| 49 | if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) ) : |