Make WordPress Core

Changeset 23213


Ignore:
Timestamp:
12/27/2012 03:49:36 PM (14 years ago)
Author:
nacin
Message:

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

Merges [23212] to the 3.5 branch.

props dannydehaan.
fixes #22882.

File:
1 edited

Legend:

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

    r23209 r23213  
    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.