CoreFiles by mySites.guru
excerpt-gallery.php18 lines, 438 bytes, from wordpress-5.7.21.zip
Raw History Compare with 5.7.20
md5
7668ff6c5a869a2ea85d6d607194aa60
sha1
02bc5e0e44a2da7a75cd5dfc08e9fcd9d7735950
sha256
10d4eaf38d4c8211ec69b051e746bc182877a7c5bac5c2f749fc23c2f06ec1cb
<?php
/**
 * Show the appropriate content for the Gallery 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 gallery found.
if ( has_block( 'core/gallery', get_the_content() ) ) {

	twenty_twenty_one_print_first_instance_of_block( 'core/gallery', get_the_content() );
}

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.