CoreFiles by mySites.guru
excerpt-link.php19 lines, 502 bytes, from wordpress-5.7.21.zip
Raw History Compare with 5.7.20
md5
f996ebbddc8a3a9fadddf1e5b5b70659
sha1
afa83801bcaec8a85a9a7172b6af9f4148eae25e
sha256
1c536880eb6ebcab098f424aa8125200dc04c952d98608a88fe57ae624767c4c
<?php
/**
 * Show the appropriate content for the Link post format.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_One
 * @since Twenty Twenty-One 1.0
 */

// Print the 1st instance of a paragraph block. If none is found, print the content.
if ( has_block( 'core/paragraph', get_the_content() ) ) {

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

	the_content();
}

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.