[wp-trac] [WordPress Trac] #39879: wp_get_sites() with a false limit no longer returns all sites
WordPress Trac
noreply at wordpress.org
Wed Feb 15 01:02:49 UTC 2017
#39879: wp_get_sites() with a false limit no longer returns all sites
--------------------------------+-----------------------------
Reporter: iandunn | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.6
Severity: normal | Keywords:
Focuses: multisite |
--------------------------------+-----------------------------
It looks like r37653 (from #36994) broke back-compat with calling
`wp_get_sites( array( 'limit' => false ) )`, because it only defines
`$args['number']` when `$args['limit']` contains a numeric value, which
boolean `false` is not.
Because of this, any calls to `wp_get_sites( array( 'limit' => false ) )`
will now only return the default 100 sites, rather than all of them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39879>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list