mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@54081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bfbbf4928f
commit
040afa7ae3
@ -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 ) );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user