Ticket #17203: 17203.diff
File 17203.diff, 644 bytes (added by , 14 years ago) |
---|
-
wp-includes/default-widgets.php
537 537 if ( ! $number = absint( $instance['number'] ) ) 538 538 $number = 10; 539 539 540 $r = new WP_Query(array('posts_per_page' => $number, 'no paging' => 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)); 541 541 if ($r->have_posts()) : 542 542 ?> 543 543 <?php echo $before_widget; ?>