WordPress.org

Make WordPress Core

Ticket #8527: get_children_post_status.diff

File get_children_post_status.diff, 453 bytes (added by filosofo, 9 years ago)
  • wp-includes/post.php

     
    127127        }
    128128
    129129        $defaults = array(
    130                 'numberposts' => -1, 'post_type' => '',
    131                 'post_status' => '', 'post_parent' => 0
     130                'numberposts' => -1, 'post_type' => 'any',
     131                'post_status' => 'any', 'post_parent' => 0,
    132132        );
    133133
    134134        $r = wp_parse_args( $args, $defaults );