CoreFiles by mySites.guru
excerpt-chat.php20 lines, 514 bytes, from wordpress-5.6-beta3.zip
Raw History Compare with 5.6-beta2
md5
3f37ccfee8119a09c270fc64eb074ece
sha1
e88dc1fe560b411c404cc7b905712a4a0e1dc217
sha256
98fedf04959dfd0a2a06acf05d40887d1cc40096333e48e446137c46326374ac
<?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 1.0.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 10 releases, WordPress 5.6-beta1 to 5.6. See them all, or every version of this file.