Make WordPress Core


Ignore:
Timestamp:
09/06/2022 01:57:23 PM (15 months 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.