[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:46:16 UTC 2012


#22882: get_post_ancestors() now returns false in addition to array()
-----------------------------------------------+--------------------
 Reporter:  dd32                               |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  3.5.1
Component:  Post Types                         |     Version:  3.5
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch commit needs-unit-tests  |
-----------------------------------------------+--------------------

Comment (by nacin):

 In [changeset:"1177/tests"]:
 {{{
 #!CommitTicketReference repository="tests" revision="1177"
 Test that get_post_ancestors() returns an empty array when passed a value
 that evaluates to false. see #22882.
 }}}

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


More information about the wp-trac mailing list