Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Feb 24, 2023
1 parent 3df7adc commit c6dedbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-featured-image/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function render_block_core_post_featured_image( $attributes, $content, $block )
$image_caption = '';
if ( $caption ) {
$image_caption = '<figcaption class="wp-element-caption">' . $caption . '</figcaption>';
} else if ( $display_caption ) {
} elseif ( $display_caption ) {
$image_caption = '<figcaption class="wp-element-caption">' . get_the_post_thumbnail_caption() . '</figcaption>';
}

Expand Down

0 comments on commit c6dedbd

Please sign in to comment.