Ticket #6608: 6608.diff

File 6608.diff, 418 bytes (added by Otto42, 5 years ago)

Patch for trunk

Line 
1Index: wp-includes/post.php
2===================================================================
3--- wp-includes/post.php        (revision 7634)
4+++ wp-includes/post.php        (working copy)
5@@ -403,7 +403,7 @@
6  * @param array $args {@internal Missing Description}}
7  * @return array {@internal Missing Description}}
8  */
9-function get_posts($args) {
10+function get_posts($args = null) {
11        global $wpdb;
12 
13        $defaults = array(