Make WordPress Core

Ticket #17203: 17203.diff

File 17203.diff, 644 bytes (added by scribu, 13 years ago)
  • wp-includes/default-widgets.php

     
    537537                if ( ! $number = absint( $instance['number'] ) )
    538538                        $number = 10;
    539539
    540                 $r = new WP_Query(array('posts_per_page' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
     540                $r = new WP_Query(array('posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
    541541                if ($r->have_posts()) :
    542542?>
    543543                <?php echo $before_widget; ?>