Changeset 25488 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 09/19/2013 01:46:03 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r25487 r25488 2008 2008 * @type int 'deleted' Retrieve deleted or non-deleted sites. Default null, for any. 2009 2009 * @type int 'limit' Number of sites to limit the query to. Default 100. 2010 * @type int 'offset' Exclude the first x sites. Used in combination with the limit parameter. Default 0. 2010 2011 * } 2011 2012 * … … 2026 2027 'deleted' => null, 2027 2028 'limit' => 100, 2029 'offset' => 0, 2028 2030 ); 2029 2031 … … 2052 2054 $query .= $wpdb->prepare( "AND deleted = %d ", $args['deleted'] ); 2053 2055 2054 if ( isset( $args['limit'] ) ) 2055 $query .= $wpdb->prepare( "LIMIT %d ", $args['limit'] ); 2056 if ( isset( $args['limit'] ) && $args['limit'] ) { 2057 if ( isset( $args['offset'] ) && $args['offset'] ) 2058 $query .= $wpdb->prepare( "LIMIT %d , %d ", $args['offset'], $args['limit'] ); 2059 else 2060 $query .= $wpdb->prepare( "LIMIT %d ", $args['limit'] ); 2061 } 2056 2062 2057 2063 $site_results = $wpdb->get_results( $query, ARRAY_A );
Note: See TracChangeset
for help on using the changeset viewer.