Ticket #25230: 25230.1.diff
File 25230.1.diff, 418 bytes (added by , 10 years ago) |
---|
-
wp-includes/post.php
3706 3706 if ( !in_array( $post_type, $hierarchical_post_types ) ) 3707 3707 return $pages; 3708 3708 3709 if ( $parent && ! $child_of )3709 if ( $parent > 0 && ! $child_of ) 3710 3710 $hierarchical = false; 3711 3711 3712 3712 // Make sure we have a valid post status