WordPress.org

Make WordPress Core

Changeset 8020


Ignore:
Timestamp:
05/30/2008 08:31:58 PM (10 years ago)
Author:
ryan
Message:

get_post_ancestors() fixes. fixes #7029 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/post.php

    r7926 r8020  
    200200 * @since 2.5
    201201 *
    202  * @param string $field {@internal Missing Description}}
    203  * @param int|object &$post post ID or post object
     202 * @param int|object $post post ID or post object
    204203 * @return array of ancestor IDs
    205204 */
    206205function get_post_ancestors($post) {
    207     $post = get_post();
     206    $post = get_post($post);
    208207
    209208    if ( !empty($post->ancestors) )
Note: See TracChangeset for help on using the changeset viewer.