Don't show stick posts in recent posts widget. Props MtDewVirus. fixes #7739

git-svn-id: https://develop.svn.wordpress.org/trunk@8886 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-09-14 05:50:10 +00:00
parent 7cd5259c88
commit f93fd85e5e
1 changed files with 1 additions and 1 deletions

View File

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