WordPress.org

Make WordPress Core

Ticket #34660: query.php.patch

File query.php.patch, 538 bytes (added by mgibbs189, 6 years ago)
  • query.php

     
    25722572                }
    25732573                if ( (isset($q['posts_per_archive_page']) && $q['posts_per_archive_page'] != 0) && ($this->is_archive || $this->is_search) )
    25742574                        $q['posts_per_page'] = $q['posts_per_archive_page'];
    2575                 if ( !isset($q['nopaging']) ) {
     2575                if ( !isset($q['nopaging']) || $q['posts_per_page'] == -1 ) {
    25762576                        if ( $q['posts_per_page'] == -1 ) {
    25772577                                $q['nopaging'] = true;
    25782578                        } else {