- Timestamp:
- 05/27/2024 12:26:51 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/functions.php
r58135 r58206 691 691 692 692 /** 693 * If a regular post or page, and not the front page, show the featured image below the header. 694 * Using get_queried_object_id() here since the $post global may not be set before a call to the_post(). 695 * 696 * @since Twenty Seventeen 3.7 697 * 698 * @return bool Whether the post thumbnail should be shown. 699 */ 700 function twentyseventeen_should_show_featured_image() { 701 $show_featured_image = ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ); 702 return apply_filters( 'twentyseventeen_should_show_featured_image', $show_featured_image ); 703 } 704 705 /** 693 706 * Implement the Custom Header feature. 694 707 */
Note: See TracChangeset
for help on using the changeset viewer.