Ticket #7029: 7029.diff
| File 7029.diff, 0.6 kB (added by mdawaffe, 6 months ago) |
|---|
-
wp-includes/post.php
old new 193 193 * @subpackage Post 194 194 * @since 2.5 195 195 * 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 198 197 * @return array of ancestor IDs 199 198 */ 200 199 function get_post_ancestors($post) { 201 $post = get_post( );200 $post = get_post($post); 202 201 203 202 if ( !empty($post->ancestors) ) 204 203 return $post->ancestors;
