Make WordPress Core


Ignore:
Timestamp:
12/01/2020 07:25:43 PM (4 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Sync the latest changes for 5.6 RC2.

This will be the final sync from GitHub before placing that repository into read-only mode. All further changes should now flow entirely through Trac.

For a full list of changes since [49633], see https://github.com/WordPress/twentytwentyone/compare/1d5a895...53acd9b.

Props poena, luminuu, kjellr, ryelle, allancole, melchoyce, felipeelia, aljullu, kebbet, chaton666, Clorith, mkaz, ingereck, paaljoachim.
Reviewed by desrosj, SergeyBiryukov.
Merges [49726] to the 5.6 branch.
Fixes #51526.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/src/wp-content/themes/twentytwentyone/inc/template-tags.php

    r49574 r49728  
    194194                the_post_thumbnail( 'post-thumbnail', array( 'loading' => 'eager' ) );
    195195                ?>
     196                <?php if ( wp_get_attachment_caption( get_post_thumbnail_id() ) ) : ?>
     197                    <figcaption class="wp-caption-text"><?php echo wp_kses_post( wp_get_attachment_caption( get_post_thumbnail_id() ) ); ?></figcaption>
     198                <?php endif; ?>
    196199            </figure><!-- .post-thumbnail -->
    197200
     
    202205                    <?php the_post_thumbnail( 'post-thumbnail' ); ?>
    203206                </a>
     207                <?php if ( wp_get_attachment_caption( get_post_thumbnail_id() ) ) : ?>
     208                    <figcaption class="wp-caption-text"><?php echo wp_kses_post( wp_get_attachment_caption( get_post_thumbnail_id() ) ); ?></figcaption>
     209                <?php endif; ?>
    204210            </figure>
    205211
Note: See TracChangeset for help on using the changeset viewer.