CoreFiles by mySites.guru
excerpt-chat.php20 lines, 530 bytes, from wordpress-6.3.13.zip
Raw History Compare with 6.3.12
md5
0307a004e633e43d34e0ac2bb4d8325d
sha1
32b1f0dd3d97ac659c104f7da7b6747fd3cb93b3
sha256
236aa277866717b983d59125d3ee76e2545c591b0def50382cb05dfe9ce9d01a
<?php
/**
 * Show the appropriate content for the Chat 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 are paragraph blocks, print up to two.
// Otherwise this is legacy content, so print the excerpt.
if ( has_block( 'core/paragraph', get_the_content() ) ) {

	twenty_twenty_one_print_first_instance_of_block( 'core/paragraph', get_the_content(), 2 );
} else {

	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.