WordPress.org

Make WordPress Core

Ticket #42260: 42260.diff

File 42260.diff, 1.8 KB (added by flixos90, 2 years ago)
  • src/wp-includes/class-wp-network-query.php

     
    170170         * @since 4.6.0
    171171         *
    172172         * @param string|array $query Array or URL query string of parameters.
    173          * @return array|int List of networks, or number of networks when 'count' is passed as a query var.
     173         * @return array|int List of WP_Network objects, a list of network ids when 'fields' is set to 'ids',
     174         *                   or the number of networks when 'count' is passed as a query var.
    174175         */
    175176        public function query( $query ) {
    176177                $this->query_vars = wp_parse_args( $query );
     
    182183         *
    183184         * @since 4.6.0
    184185         *
    185          * @return int|array The list of networks.
     186         * @return array|int List of WP_Network objects, a list of network ids when 'fields' is set to 'ids',
     187         *                   or the number of networks when 'count' is passed as a query var.
    186188         */
    187189        public function get_networks() {
    188190                $this->parse_query();
  • src/wp-includes/ms-blogs.php

     
    11161116 *
    11171117 * @param string|array $args Optional. Array or string of arguments. See WP_Network_Query::parse_query()
    11181118 *                           for information on accepted arguments. Default empty array.
    1119  * @return int|array List of networks or number of found networks if `$count` argument is true.
     1119 * @return array|int List of WP_Network objects, a list of network ids when 'fields' is set to 'ids',
     1120 *                   or the number of networks when 'count' is passed as a query var.
    11201121 */
    11211122function get_networks( $args = array() ) {
    11221123        $query = new WP_Network_Query();