diff --git a/wp-includes/post.php b/wp-includes/post.php index f1b1bf96bd..6e575ea949 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -682,7 +682,7 @@ final class WP_Post { */ function get_post_ancestors( $post ) { if ( ! $post ) - return false; + return array(); $post = get_post( $post );