Skip to content

Commit

Permalink
Call function properly
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Jun 20, 2024
1 parent 4e13d3e commit 9d417dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function set_content_between_figcaption_balanced_tags( $new_content ) {
*/
if (
WP_HTML_Processor::STATE_MATCHED_TAG !== $this->parser_state ||
'figcaption' !== $this->get_tag() ||
'figcaption' !== $this->get_tag() ||
$this->is_tag_closer()
) {
return false;
Expand Down Expand Up @@ -396,7 +396,7 @@ public function set_content_between_figcaption_balanced_tags( $new_content ) {
};
$block_reader = $bindings_processor::create_fragment( $block_content );
if ( $block_reader->next_tag( 'figcaption' ) ) {
$block_reader->set_inner_text( wp_kses_post( $source_value ) );
$block_reader->set_content_between_figcaption_balanced_tags( wp_kses_post( $source_value ) );
}
return $block_reader->get_updated_html();
}
Expand Down

0 comments on commit 9d417dd

Please sign in to comment.