Ticket #34060: patch.diff
File patch.diff, 467 bytes (added by , 9 years ago) |
---|
-
wp/wp-includes/query.php
diff --git a/wp/wp-includes/query.php b/wp/wp-includes/query.php index 6cfdd2e..7c5548f 100644
a b class WP_Query { 3083 3083 if ( !$page ) 3084 3084 $page = 1; 3085 3085 3086 if ( empty($q['offset']) ) {3086 if ( !isset($q['offset']) ) { 3087 3087 $pgstrt = absint( ( $page - 1 ) * $q['posts_per_page'] ) . ', '; 3088 3088 } else { // we're ignoring $page and using 'offset' 3089 3089 $q['offset'] = absint($q['offset']);