From 7e5969a1f9d30101f98db9ac61e6df71f28ce6a2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 14 Apr 2008 16:23:29 +0000 Subject: [PATCH] Make get_posts args optional. Props karlkatzke and Otto42. fixes #6608 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@7647 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index fdb6d648f5..74ecfa5c4d 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -403,7 +403,7 @@ function set_post_type( $post_id = 0, $post_type = 'post' ) { * @param array $args {@internal Missing Description}} * @return array {@internal Missing Description}} */ -function get_posts($args) { +function get_posts($args = null) { global $wpdb; $defaults = array(