CoreFiles by mySites.guru
excerpt-link.php19 lines, 486 bytes, from wordpress-5.6-beta3.zip
Raw History Compare with 5.6-beta2
md5
056a545594d81c472b58d36513393e33
sha1
1909a759c96a2ebdceec5ef5b50d634a5ca72156
sha256
4428fc29cfbcbec3fc07b1eaf0c7e79420fab7a672e36c1beed0400340acf944
<?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 1.0.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 10 releases, WordPress 5.6-beta1 to 5.6. See them all, or every version of this file.