[wp-trac] [WordPress Trac] #22882: get_post_ancestors() now returns false in addition to array()
WordPress Trac
noreply at wordpress.org
Thu Dec 27 15:49:37 UTC 2012
#22882: get_post_ancestors() now returns false in addition to array()
-----------------------------------------------+---------------------
Reporter: dd32 | Owner: nacin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5.1
Component: Post Types | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-unit-tests |
-----------------------------------------------+---------------------
Comment (by nacin):
In [changeset:"23213"]:
{{{
#!CommitTicketReference repository="" revision="23213"
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.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22882#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list