File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments