Use array calling style. see #6647

git-svn-id: https://develop.svn.wordpress.org/trunk@7911 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-05-08 19:19:58 +00:00
parent 3fa0a54c74
commit 020a8cacad
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -903,7 +903,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&post_status=publish");
$r = new WP_Query(array('showposts' => $number, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish'));
if ($r->have_posts()) :
?>
<?php echo $before_widget; ?>