Skip to content

Commit 9d417dd

Browse files
Call function properly
1 parent 4e13d3e commit 9d417dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/class-wp-block.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function set_content_between_figcaption_balanced_tags( $new_content ) {
357357
*/
358358
if (
359359
WP_HTML_Processor::STATE_MATCHED_TAG !== $this->parser_state ||
360-
'figcaption' !== $this->get_tag() ||
360+
'figcaption' !== $this->get_tag() ||
361361
$this->is_tag_closer()
362362
) {
363363
return false;
@@ -396,7 +396,7 @@ public function set_content_between_figcaption_balanced_tags( $new_content ) {
396396
};
397397
$block_reader = $bindings_processor::create_fragment( $block_content );
398398
if ( $block_reader->next_tag( 'figcaption' ) ) {
399-
$block_reader->set_inner_text( wp_kses_post( $source_value ) );
399+
$block_reader->set_content_between_figcaption_balanced_tags( wp_kses_post( $source_value ) );
400400
}
401401
return $block_reader->get_updated_html();
402402
}

0 commit comments

Comments
 (0)