[wp-trac] [WordPress Trac] #32450: WP_Site class
WordPress Trac
noreply at wordpress.org
Sat Mar 12 00:07:59 UTC 2016
#32450: WP_Site class
--------------------------------+-------------------------
Reporter: jeremyfelt | Owner: jeremyfelt
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 4.5
Component: Networks and Sites | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: multisite
--------------------------------+-------------------------
Comment (by spacedmonkey):
It should be simple enough. Something like this should work.
{{{
$sites = $wpdb->get_results( $query );
$site_results = array();
foreach( $sites as $site ){
$site_results[] = new WP_Site( $site );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32450#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list