_get_post_ancestors

The timeline below displays how wordpress function _get_post_ancestors has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.9

/**
 * 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 Use get_post_ancestors()
 * @see get_post_ancestors()
 *
 * @param WP_Post $post Post object, passed by reference (unused).
 */
function _get_post_ancestors(&$post)
{
    _deprecated_function(__FUNCTION__, '3.5.0');
}

WordPress Version: 4.6

/**
 * 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 Use get_post_ancestors()
 * @see get_post_ancestors()
 *
 * @param WP_Post &$post Post object, passed by reference (unused).
 */
function _get_post_ancestors(&$post)
{
    _deprecated_function(__FUNCTION__, '3.5.0');
}

WordPress Version: 4.5

/**
 * 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 Use get_post_ancestors()
 * @see get_post_ancestors()
 *
 * @param WP_Post &$post Post object, passed by reference (unused).
 */
function _get_post_ancestors(&$post)
{
    _deprecated_function(__FUNCTION__, '3.5');
}

WordPress Version: 4.4

/**
 * 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 Use get_post_ancestors()
 * @see get_post_ancestors()
 */
function _get_post_ancestors(&$post)
{
    _deprecated_function(__FUNCTION__, '3.5');
}

WordPress Version: 3.7

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