From df56131c6a7b79deac343030b559a2572f7cf000 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 6 Sep 2022 13:59:13 +0000 Subject: [PATCH] Docs: Simplify a comment in `WP_Network_Query::get_networks()` and `WP_Site_Query::get_sites()`. This aims to improve readability. The arguments ignored are listed in the line directly below, so there is no need to mention them twice. Follow-up to [41059], [41063], [53097], [53098], [54080]. See #55646. Built from https://develop.svn.wordpress.org/trunk@54081 git-svn-id: http://core.svn.wordpress.org/trunk@53640 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-network-query.php | 2 +- wp-includes/class-wp-site-query.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-network-query.php b/wp-includes/class-wp-network-query.php index 85d8b53590..e8ff1a5e50 100644 --- a/wp-includes/class-wp-network-query.php +++ b/wp-includes/class-wp-network-query.php @@ -245,7 +245,7 @@ class WP_Network_Query { // $args can include anything. Only use the args defined in the query_var_defaults to compute the key. $_args = wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ); - // Ignore the $fields, $update_network_cache, and $update_network_meta_cache arguments as the queried result will be the same regardless. + // Ignore these arguments, as the queried result will be the same regardless. unset( $_args['fields'], $_args['update_network_cache'], $_args['update_network_meta_cache'] ); $key = md5( serialize( $_args ) ); diff --git a/wp-includes/class-wp-site-query.php b/wp-includes/class-wp-site-query.php index 18961253f1..b620713989 100644 --- a/wp-includes/class-wp-site-query.php +++ b/wp-includes/class-wp-site-query.php @@ -350,7 +350,7 @@ class WP_Site_Query { // $args can include anything. Only use the args defined in the query_var_defaults to compute the key. $_args = wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ); - // Ignore the $fields, $update_site_cache, $update_site_meta_cache argument as the queried result will be the same regardless. + // Ignore these arguments, as the queried result will be the same regardless. unset( $_args['fields'], $_args['update_site_cache'], $_args['update_site_meta_cache'] ); $key = md5( serialize( $_args ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index c759f6d6f3..6d179bb6a9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54080'; +$wp_version = '6.1-alpha-54081'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.