From 4a10a8eac2b9059ed982b71ff4e5b260b34b856a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 21 Aug 2012 00:10:05 +0000 Subject: [PATCH] Restore _get_post_ancestors() in deprecated.php to prevent fatal errors. see #21309. git-svn-id: https://develop.svn.wordpress.org/trunk@21568 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/deprecated.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 023767810c..def4722ec4 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -3190,3 +3190,17 @@ function sticky_class( $post_id = null ) { if ( is_sticky( $post_id ) ) echo ' sticky'; } + +/** + * Retrieve post ancestors. + * + * This is no longer needed as WP_Post lazy-loads the ancestors + * property with get_post_ancestors(). + * + * @since 2.3.4 + * @deprecated 3.5.0 + * @see get_post_ancestors() + */ +function _get_post_ancestors( &$post ) { + _deprecated_function( __FUNCTION__, '3.5' ); +} \ No newline at end of file