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
This commit is contained in:
Andrew Nacin 2012-08-21 00:10:05 +00:00
parent 9143e2c860
commit 4a10a8eac2
1 changed files with 14 additions and 0 deletions

View File

@ -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' );
}