| @@ -94,16 +94,9 @@ | ||
| 94 | 94 | * |
| 95 | 95 | * @return array |
| 96 | 96 | */ |
| 97 | 97 | function wp_stream_get_sites( $args = array() ) { |
| 98 | - if ( empty( $args['limit'] ) ) { | |
| 99 | - $args['limit'] = 0; | |
| 100 | - } | |
| 101 | - | |
| 102 | 98 | if ( function_exists( 'get_sites' ) ) { |
| 103 | - // Account for get_sites() which uses 'number' while wp_get_sites() uses 'limit'. | |
| 104 | - $args['number'] = $args['limit']; | |
| 105 | - | |
| 106 | 99 | $sites = get_sites( $args ); |
| 107 | 100 | } else { |
| 108 | 101 | $sites = array(); |
| 109 | 102 | foreach ( wp_get_sites( $args ) as $site ) { // @codingStandardsIgnoreLine Specifically for old version of WP first, in order to provide backward compatibility |