diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index bf3db0ecf3..0531c00b7b 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -444,10 +444,10 @@ class WP_Comment_Query { /* * Only use the args defined in the query_var_defaults to compute the key, - * but ignore 'fields', which does not affect query results. + * but ignore 'fields', 'update_comment_meta_cache', 'update_comment_post_cache' which does not affect query results. */ $_args = wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ); - unset( $_args['fields'] ); + unset( $_args['fields'], $_args['update_comment_meta_cache'], $_args['update_comment_post_cache'] ); $key = md5( serialize( $_args ) ); $last_changed = wp_cache_get_last_changed( 'comment' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9b790d8d14..445c70bd6b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta1-53168'; +$wp_version = '6.0-beta1-53169'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.