Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Jun 16, 2024
1 parent 5e88c21 commit 9cb829b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/compat/wordpress-6.5/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ public function gutenberg_set_inner_text( $new_content ) {
};

if ( 'core/image' === $block_name && 'caption' === $attribute_name ) {
if ( $block_reader->next_tag( 'figcaption' )
) {
if ( $block_reader->next_tag( 'figcaption' ) ) {
$block_reader->gutenberg_set_inner_text( wp_kses_post( $source_value ) );
}
return $block_reader->get_updated_html();
Expand Down

0 comments on commit 9cb829b

Please sign in to comment.