Limit recent entries query to published posts. fixes #4786

git-svn-id: http://svn.automattic.com/wordpress/trunk@5973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-08-29 18:02:19 +00:00
parent 6a0629e717
commit ef5caabe37
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ function wp_widget_recent_entries($args) {
else if ( $number > 15 )
$number = 15;
$r = new WP_Query("showposts=$number&what_to_show=posts&nopaging=0");
$r = new WP_Query("showposts=$number&what_to_show=posts&nopaging=0&post_status=publish");
if ($r->have_posts()) :
?>
<?php echo $before_widget; ?>