]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/post.php
WordPress 3.7.2-scripts
[autoinstalls/wordpress.git] / wp-includes / post.php
index 39d71a37c8366b555971d74b1cbe4c12d7cd0709..8770b0dc4f93e7c4e74ab83f13c9b44492d7dcd4 100644 (file)
@@ -3706,7 +3706,7 @@ function get_pages( $args = array() ) {
        if ( !in_array( $post_type, $hierarchical_post_types ) )
                return $pages;
 
-       if ( $parent && ! $child_of )
+       if ( $parent > 0 && ! $child_of )
                $hierarchical = false;
 
        // Make sure we have a valid post status