From f93fd85e5ee727c11728905549ff871c1d92ddff Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 14 Sep 2008 05:50:10 +0000 Subject: [PATCH] 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 --- wp-includes/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 744b07a726..a943e12be8 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -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()) : ?>