Make WordPress Core

Ticket #34060: patch.diff

File patch.diff, 467 bytes (added by mazurstas, 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 { 
    30833083                        if ( !$page )
    30843084                                $page = 1;
    30853085
    3086                         if ( empty($q['offset']) ) {
     3086                        if ( !isset($q['offset']) ) {
    30873087                                $pgstrt = absint( ( $page - 1 ) * $q['posts_per_page'] ) . ', ';
    30883088                        } else { // we're ignoring $page and using 'offset'
    30893089                                $q['offset'] = absint($q['offset']);