Make WordPress Core

Changeset 54081


Ignore:
Timestamp:
09/06/2022 01:57:23 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-network-query.php

    r54080 r54081  
    246246        $_args = wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) );
    247247
    248         // Ignore the $fields, $update_network_cache, and $update_network_meta_cache arguments as the queried result will be the same regardless.
     248        // Ignore these arguments, as the queried result will be the same regardless.
    249249        unset( $_args['fields'], $_args['update_network_cache'], $_args['update_network_meta_cache'] );
    250250
  • trunk/src/wp-includes/class-wp-site-query.php

    r53503 r54081  
    351351        $_args = wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) );
    352352
    353         // Ignore the $fields, $update_site_cache, $update_site_meta_cache argument as the queried result will be the same regardless.
     353        // Ignore these arguments, as the queried result will be the same regardless.
    354354        unset( $_args['fields'], $_args['update_site_cache'], $_args['update_site_meta_cache'] );
    355355
Note: See TracChangeset for help on using the changeset viewer.