- Timestamp:
- 12/01/2020 07:25:43 PM (4 years ago)
- 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 194 194 the_post_thumbnail( 'post-thumbnail', array( 'loading' => 'eager' ) ); 195 195 ?> 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; ?> 196 199 </figure><!-- .post-thumbnail --> 197 200 … … 202 205 <?php the_post_thumbnail( 'post-thumbnail' ); ?> 203 206 </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; ?> 204 210 </figure> 205 211
Note: See TracChangeset
for help on using the changeset viewer.