Changeset 26525
- Timestamp:
- 12/02/2013 04:25:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r26090 r26525 2802 2802 $page = 1; 2803 2803 2804 $pgstrt = ($page - 1) * $q['posts_per_page'];2805 2806 if ( ! empty( $q['offset'] ) ) {2804 if ( empty($q['offset']) ) { 2805 $pgstrt = ($page - 1) * $q['posts_per_page'] . ', '; 2806 } else { // we're ignoring $page and using 'offset' 2807 2807 $q['offset'] = absint($q['offset']); 2808 $pgstrt += $q['offset'];2809 } 2810 $limits = 'LIMIT ' . $pgstrt . ', ' .$q['posts_per_page'];2808 $pgstrt = $q['offset'] . ', '; 2809 } 2810 $limits = 'LIMIT ' . $pgstrt . $q['posts_per_page']; 2811 2811 } 2812 2812
Note: See TracChangeset
for help on using the changeset viewer.