mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
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:
parent
248a0c06e2
commit
972851a755
@ -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
Block a user