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:
parent
fdc05b24f6
commit
7e5969a1f9
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue