CoreFiles by mySites.guru
featured-image.php43 lines, 803 bytes, from wordpress-5.3-beta1.zip
Raw History Compare with 5.2-beta3
md5
40f7c0580bef813524cab1966247cffc
sha1
595994ab60627e645f82b0d185f1f4df0bb227f6
sha256
fe4aa37900be1523a295eddc044795a82ad494d4e7c1f3141281ab2eae9bd6d7
<?php
/**
 * Displays the featured image
 *
 * @package WordPress
 * @subpackage Twenty_Nineteen
 * @since 1.0.0
 */

if ( has_post_thumbnail() && ! post_password_required() ) {

	$featured_media_inner_classes = '';

	// Make the featured media thinner on archive pages.
	if ( ! is_singular() ) {
		$featured_media_inner_classes .= ' medium';
	}
	?>

	<figure class="featured-media">

		<div class="featured-media-inner section-inner<?php echo esc_attr( $featured_media_inner_classes ); ?>">

			<?php
			the_post_thumbnail();

			$caption = get_the_post_thumbnail_caption();

			if ( $caption ) {
				?>

				<figcaption class="wp-caption-text"><?php echo esc_html( $caption ); ?></figcaption>

				<?php
			}
			?>

		</div><!-- .featured-media-inner -->

	</figure><!-- .featured-media -->

	<?php
}

No other release has this exact content. See every version of this file.