--- a/wp/wp-includes/blocks/latest-comments.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/blocks/latest-comments.php Tue Sep 27 16:37:53 2022 +0200
@@ -30,7 +30,7 @@
if ( empty( $title ) ) {
$title = __( '(no title)' );
}
- return esc_html( $title );
+ return $title;
}
/**
@@ -42,14 +42,15 @@
*/
function render_block_core_latest_comments( $attributes = array() ) {
$comments = get_comments(
- // This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php.
+ /** This filter is documented in wp-includes/widgets/class-wp-widget-recent-comments.php */
apply_filters(
'widget_comments_args',
array(
'number' => $attributes['commentsToShow'],
'status' => 'approve',
'post_status' => 'publish',
- )
+ ),
+ array()
)
);