diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index de2f6cc4eb..42919b7dc2 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -244,6 +244,8 @@ class WP_REST_Comments_Controller extends WP_REST_Controller { $prepared_args['no_found_rows'] = false; + $prepared_args['update_comment_post_cache'] = true; + $prepared_args['date_query'] = array(); // Set before into date query. Date query must be specified as an array of an array.