Multisite: More specificity for the `get_sites()` documentation.
See #41789 git-svn-id: https://develop.svn.wordpress.org/trunk@41333 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b1d9cac1fc
commit
503562e03a
|
@ -211,7 +211,7 @@ class WP_Site_Query {
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
*
|
*
|
||||||
* @param string|array $query Array or URL query string of parameters.
|
* @param string|array $query Array or URL query string of parameters.
|
||||||
* @return array|int List of sites, or number of sites when 'count' is passed as a query var.
|
* @return array|int List of WP_Site objects, or number of sites when 'count' is passed as a query var.
|
||||||
*/
|
*/
|
||||||
public function query( $query ) {
|
public function query( $query ) {
|
||||||
$this->query_vars = wp_parse_args( $query );
|
$this->query_vars = wp_parse_args( $query );
|
||||||
|
@ -224,7 +224,7 @@ class WP_Site_Query {
|
||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
*
|
*
|
||||||
* @return array|int List of sites, or number of sites when 'count' is passed as a query var.
|
* @return array|int List of WP_Site objects, or number of sites when 'count' is passed as a query var.
|
||||||
*/
|
*/
|
||||||
public function get_sites() {
|
public function get_sites() {
|
||||||
$this->parse_query();
|
$this->parse_query();
|
||||||
|
|
Loading…
Reference in New Issue