Make get_posts args optional. Props karlkatzke and Otto42. fixes #6608 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@7647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-04-14 16:23:29 +00:00
parent 248a0c06e2
commit 972851a755

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(