mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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. git-svn-id: http://core.svn.wordpress.org/branches/3.5@23213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6554a63504
commit
20340a01db
@ -682,7 +682,7 @@ final class WP_Post {
|
||||
*/
|
||||
function get_post_ancestors( $post ) {
|
||||
if ( ! $post )
|
||||
return false;
|
||||
return array();
|
||||
|
||||
$post = get_post( $post );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user