CoreFiles by mySites.guru
excerpt-image.php21 lines, 520 bytes, from wordpress-6.2.13.zip
Raw History Compare with 6.2.12
md5
3dabb35a6f62530a166735c2f6b28cf4
sha1
76a7dba859cb5a217bb59e0918dc74dac9231b6b
sha256
c6759d0e725e1af9e11bd94c60cd5e94d3e68b1ec84b6250cdb3b8b4caed1dbd
<?php
/**
 * Show the appropriate content for the Image post format.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_One
 * @since Twenty Twenty-One 1.0
 */

// If there is no featured-image, print the first image block found.
if (
	! twenty_twenty_one_can_show_post_thumbnail() &&
	has_block( 'core/image', get_the_content() )
) {

	twenty_twenty_one_print_first_instance_of_block( 'core/image', get_the_content() );
}

the_excerpt();

The same content is in 239 releases, WordPress 5.6.1-RC1 to 6.4-RC4. See them all, or every version of this file.