From e7c4a9de856d48683e5326eaea104ca1d4b6520e Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 30 May 2008 20:31:45 +0000 Subject: [PATCH] get_post_ancestors() fixes. fixes #7029 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@8019 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;