Skip to content

Commit 4486a6b

Browse files
committed
Revert "sprintf requires more than 1 params (#49054)"
This reverts commit 784081e.
1 parent f22a3cb commit 4486a6b

File tree

1 file changed

+2
-1
lines changed
  • packages/block-library/src/comment-template

1 file changed

+2
-1
lines changed

packages/block-library/src/comment-template/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ function block_core_comment_template_render_comments( $comments, $block ) {
5858
$block_content .= sprintf( '<ol>%1$s</ol>', $inner_content );
5959
--$comment_depth;
6060
} else {
61-
$block_content .= block_core_comment_template_render_comments(
61+
$inner_content = block_core_comment_template_render_comments(
6262
$children,
6363
$block
6464
);
65+
$block_content .= sprintf( $inner_content );
6566
}
6667
}
6768

0 commit comments

Comments
 (0)