From e1faf662e83051ffde5699dc5b066fe3d51dcbaa Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 30 May 2008 20:31:45 +0000 Subject: [PATCH] get_post_ancestors() fixes. fixes #7029 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@8019 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 6b53b485b7..bb14d8645a 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -193,12 +193,11 @@ function &get_post(&$post, $output = OBJECT, $filter = 'raw') { * @subpackage Post * @since 2.5 * - * @param string $field {@internal Missing Description}} - * @param int|object &$post post ID or post object + * @param int|object $post post ID or post object * @return array of ancestor IDs */ function get_post_ancestors($post) { - $post = get_post(); + $post = get_post($post); if ( !empty($post->ancestors) ) return $post->ancestors;