CoreFiles by mySites.guru
excerpt-image.php21 lines, 504 bytes, from wordpress-5.6-beta4.zip
Raw History Compare with 5.6-beta3
md5
c7a86e2b01922a5d5d55ee97c857a014
sha1
9a31e90b8a26846d12d05b7f61609748700674fc
sha256
690f2ae8556f1bbf5beafb4813bd775e0eb37dc294a9113fc3dc8291a2f5e87e
<?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 1.0.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 10 releases, WordPress 5.6-beta1 to 5.6. See them all, or every version of this file.