Skip to content

Commit 4e77262

Browse files
Change function name
1 parent 1855e5d commit 4e77262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ private function replace_html( string $block_content, string $attribute_name, $s
348348
* @param string $new_content New content to insert in the figcaption element.
349349
* @return bool Whether the inner content was properly replaced.
350350
*/
351-
public function set_figcaption_inner_text( $new_content ) {
351+
public function set_figcaption_inner_html( $new_content ) {
352352
// Check that the processor is paused on an opener tag.
353353
if ( 'FIGCAPTION' !== $this->get_tag() || $this->is_tag_closer() ) {
354354
return false;
@@ -386,7 +386,7 @@ public function set_figcaption_inner_text( $new_content ) {
386386

387387
$block_reader = $bindings_processor::create_fragment( $block_content );
388388
if ( $block_reader->next_tag( 'figcaption' ) ) {
389-
$block_reader->set_figcaption_inner_text( $source_value );
389+
$block_reader->set_figcaption_inner_html( $source_value );
390390
}
391391
return $block_reader->get_updated_html();
392392
}

0 commit comments

Comments
 (0)