[wp-trac] [WordPress Trac] #14511: new function - wp_get_sites($args)

WordPress Trac noreply at wordpress.org
Thu Aug 29 20:16:52 UTC 2013


#14511: new function - wp_get_sites($args)
-------------------------------------+------------------
 Reporter:  transom                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.7
Component:  Multisite                |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by jeremyfelt):

 [attachment:14511.2.diff] does a few things better/differently.

 * `$network_id` defaults to `null` as a default argument in `$args`
 * If `$network_id` is passed as null, bool, or all, sites from all
 networks are returned
 * If `$network_id` is passed as a single network ID or an array of network
 IDs, only those sites are returned
 * Arguments for public, archived, mature, spam, deleted are accepted. By
 default they are left out of the query
 * All DB fields are returned in the response rather than just blog_id,
 domain, and path.

 Have not hit querying by domain/path yet.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/14511#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list