[wp-trac] [WordPress Trac] #41789: get_sites() returns an integer when 'count' is passed as a query var

WordPress Trac noreply at wordpress.org
Mon Oct 9 18:04:15 UTC 2017


#41789: get_sites() returns an integer when 'count' is passed as a query var
--------------------------------+------------------------------
 Reporter:  ocean90             |       Owner:  ocean90
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:  4.9
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:  docs, multisite
--------------------------------+------------------------------

Comment (by jeremyfelt):

 How about:

 `array|int Defaults to list of WP_Site objects. A list of site ids when
 'fields' is set to 'ids'. The number of sites when 'count' is passed as a
 query var.`

 * On `WP_Site_Query`'s `query()` and `get_sites()` and in the
 `get_sites()` function.
 * Similarly with networks on `WP_Network_Query`'s `query()` and
 `get_networks()` and in the `get_networks()` function.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41789#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list