Make WordPress Core


Ignore:
Timestamp:
12/27/2012 03:48:18 PM (11 years ago)
Author:
nacin
Message:

Always return arrays from get_post_ancestors(). Return an array when passed a value that evaluates to false.

props dannydehaan.
fixes #22882 for trunk.
Test: [1177/tests].

File:
1 edited

Legend:

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

    r23208 r23212  
    683683function get_post_ancestors( $post ) {
    684684    if ( ! $post )
    685         return false;
     685        return array();
    686686
    687687    $post = get_post( $post );
Note: See TracChangeset for help on using the changeset viewer.