wp-content/themes/twentynineteen/inc/template-tags.php:143Displays an optional post thumbnail.
function twentynineteen_post_thumbnail() { if ( ! twentynineteen_can_show_post_thumbnail() ) { return; } if ( is_singular() ) : ?> <figure class="post-thumbnail"> <?php the_post_thumbnail(); ?> </figure><!-- .post-thumbnail --> <?php else : ?> <figure class="post-thumbnail"> <a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1"> <?php the_post_thumbnail( 'post-thumbnail' ); ?> </a> </figure> <?php endif; // End is_singular(). }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentynineteen/inc/template-tags.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.