WordPress.org

Make WordPress Core

Changeset 8019


Ignore:
Timestamp:
05/30/08 20:31:45 (6 years ago)
Author:
ryan
Message:

get_post_ancestors() fixes. fixes #7029 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r8011 r8019  
    194194 * @since 2.5 
    195195 * 
    196  * @param string $field {@internal Missing Description}} 
    197  * @param int|object &$post post ID or post object 
     196 * @param int|object $post post ID or post object 
    198197 * @return array of ancestor IDs 
    199198 */ 
    200199function get_post_ancestors($post) { 
    201     $post = get_post(); 
     200    $post = get_post($post); 
    202201 
    203202    if ( !empty($post->ancestors) ) 
Note: See TracChangeset for help on using the changeset viewer.