CoreFiles by mySites.guru
featured-image.php43 lines, 801 bytes, from wordpress-5.3-beta2.zip
Raw History Compare with 5.3-beta1
md5
0d2122ead70cee65056c3a0e30970aaf
sha1
e7a32b8c4732a7b6ea8eab2e80a840f74409ef68
sha256
14ede9566c5ad8e58932a3656959b258d723c129b33a8e5a7d7a31c6a6127d52
<?php
/**
 * Displays the featured image
 *
 * @package WordPress
 * @subpackage Twenty_Twenty
 * @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.