[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:48:18 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  |
-----------------------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"23212"]:
 {{{
 #!CommitTicketReference repository="" revision="23212"
 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].
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22882#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list