CoreFiles by mySites.guru
excerpt-quote.php21 lines, 596 bytes, from wordpress-5.6-RC1.zip
Raw History Compare with 5.5.1-RC2
md5
e537827f1421d241964fdeab315a02ad
sha1
e5d369ae5432a3d06159054f8dbdb5a027d0f278
sha256
a769e1ec443c512634063d9e8079283f6d5978597e402203098a2bc7978f115b
<?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 1.0.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 10 releases, WordPress 5.6-beta1 to 5.6. See them all, or every version of this file.