CoreFiles by mySites.guru
excerpt-quote.php21 lines, 612 bytes, from wordpress-5.9.13.zip
Raw History Compare with 5.9.12
md5
e2b0dc445a638b10d5aae768e8c797ce
sha1
b1d0e790f893f22513c6865e6b20b58e15ea849e
sha256
a64fad6504a2af1314f7afcab1e82f83ccf5d2101a96e234bc51ceaaaaa93a13
<?php
/**
 * Show the appropriate content for the Quote post format.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_One
 * @since Twenty Twenty-One 1.0
 */

$content = get_the_content();

// If there is no quote or pullquote print the content.
if ( has_block( 'core/quote', $content ) ) {
	twenty_twenty_one_print_first_instance_of_block( 'core/quote', $content );
} elseif ( has_block( 'core/pullquote', $content ) ) {
	twenty_twenty_one_print_first_instance_of_block( 'core/pullquote', $content );
} 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.