[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 Sep 4 11:24:29 UTC 2017


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

Comment (by ocean90):

 @johnbillion That specificity is incorrect. `get_sites()` can also return
 an array of IDs.
 Also, why didn't you update `get_sites()`? And while we're on it, we
 should probably make the docs consistent across all the query classes.

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


More information about the wp-trac mailing list