From 1c36424a1c28b09bc95d9528e2f3be6f7f19308d Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@8886 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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()) : ?>