wp/wp-includes/blocks/latest-comments.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- 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()
 		)
 	);