WordPress.org

Make WordPress Core

Ticket #7029: 7029.diff

File 7029.diff, 590 bytes (added by mdawaffe, 7 years ago)
  • wp-includes/post.php

     
    193193 * @subpackage Post 
    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) ) 
    204203                return $post->ancestors;