[wp-trac] [WordPress Trac] #37823: Use get_sites in Network upgrade
WordPress Trac
noreply at wordpress.org
Thu Aug 25 19:14:50 UTC 2016
#37823: Use get_sites in Network upgrade
----------------------------------------+------------------------
Reporter: spacedmonkey | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: multisite
----------------------------------------+------------------------
Comment (by johnjamesjacoby):
+1 from me also, once @flixos90's recommendations.
I'd also prefer to not use `$args` as a one-time variable, and do this
instead:
{{{
$blogs = get_sites( array(
'spam' => '0',
'deleted' => '0',
'archived' => '0',
'network_id' => get_current_network_id(),
'fields' => 'ids',
'number' => 5,
'offset' => $n,
'order' => 'DESC',
'orderby' => 'id',
) );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37823#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list