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
This commit is contained in:
parent
b51249a60f
commit
1c36424a1c
|
@ -912,7 +912,7 @@ function wp_widget_recent_entries($args) {
|
||||||
else if ( $number > 15 )
|
else if ( $number > 15 )
|
||||||
$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()) :
|
if ($r->have_posts()) :
|
||||||
?>
|
?>
|
||||||
<?php echo $before_widget; ?>
|
<?php echo $before_widget; ?>
|
||||||
|
|
Loading…
Reference in New Issue