[wp-trac] [WordPress Trac] #22882: get_post_ancestors() now returns false in addition to array()

WordPress Trac noreply at wordpress.org
Wed Dec 12 19:28:01 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:  General                      |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+--------------------
Changes (by dannydehaan):

 * keywords:   => has-patch reporter-feedback


Comment:

 I've made a simple patch that returns an array when the variable $post
 isn't available.

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


More information about the wp-trac mailing list