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
This commit is contained in:
Ryan Boren 2008-04-14 16:23:29 +00:00
parent fdc05b24f6
commit 7e5969a1f9
1 changed files with 1 additions and 1 deletions

View File

@ -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(