mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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
This commit is contained in:
parent
8d1156f066
commit
df56131c6a
@ -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 ) );
|
||||
|
@ -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 ) );
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user