Pass no_found_rows to query in recent posts widget. Props scribu. fixes #17203

git-svn-id: https://develop.svn.wordpress.org/trunk@17825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-05-06 20:54:43 +00:00
parent f844db8e41
commit 868ff9bcfa
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
if ( ! $number = absint( $instance['number'] ) )
$number = 10;
$r = new WP_Query(array('posts_per_page' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
$r = new WP_Query(array('posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
if ($r->have_posts()) :
?>
<?php echo $before_widget; ?>