CoreFiles by mySites.guru
excerpt-gallery.php18 lines, 422 bytes, from wordpress-5.6-beta4.zip
Raw History Compare with 5.6-beta3
md5
682734208064516a2519f9c97b28fa18
sha1
c7c0ba3825055554283b51ab0b71c862c6c45dd3
sha256
2b008bd13823770f5f3d75582bbdf84ac102fb6640bf5722f997e9f0e1504c06
<?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 1.0.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 10 releases, WordPress 5.6-beta1 to 5.6. See them all, or every version of this file.