Ticket #18897: 18897.2.diff
| File 18897.2.diff, 539 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/query.php
2804 2804 $pgstrt = ($page - 1) * $q['posts_per_page']; 2805 2805 2806 2806 if ( ! empty( $q['offset'] ) ) { 2807 $q['offset'] = absint($q['offset']);2807 $q['offset'] = ( absint( $q['offset'] ) <= $pgstrt ) ? intval( $q['offset'] ) : 0; 2808 2808 $pgstrt += $q['offset']; 2809 2809 } 2810 2810 $limits = 'LIMIT ' . $pgstrt . ', ' . $q['posts_per_page'];