s/showposts/posts_per_page/

git-svn-id: https://develop.svn.wordpress.org/trunk@15788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-10-13 05:25:00 +00:00
parent e87af16398
commit 5e37bb785a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -542,7 +542,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
else if ( $number > 15 )
$number = 15;
$r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
$r = new WP_Query(array('posts_per_page' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
if ($r->have_posts()) :
?>
<?php echo $before_widget; ?>