mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 13:37:51 +01:00
Restore _get_post_ancestors() in deprecated.php to prevent fatal errors. see #21309.
git-svn-id: http://core.svn.wordpress.org/trunk@21568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cc63fad8cb
commit
80159bda68
@ -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' );
|
||||
}
|
Loading…
Reference in New Issue
Block a user