Ticket #42260: 42260.diff
| File 42260.diff, 1.8 KB (added by , 8 years ago) |
|---|
-
src/wp-includes/class-wp-network-query.php
170 170 * @since 4.6.0 171 171 * 172 172 * @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. 174 175 */ 175 176 public function query( $query ) { 176 177 $this->query_vars = wp_parse_args( $query ); … … 182 183 * 183 184 * @since 4.6.0 184 185 * 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. 186 188 */ 187 189 public function get_networks() { 188 190 $this->parse_query(); -
src/wp-includes/ms-blogs.php
1116 1116 * 1117 1117 * @param string|array $args Optional. Array or string of arguments. See WP_Network_Query::parse_query() 1118 1118 * 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. 1120 1121 */ 1121 1122 function get_networks( $args = array() ) { 1122 1123 $query = new WP_Network_Query();