[wp-trac] [WordPress Trac] #37738: WP_Post::get_instance returns erroneous data for invalid input such as an array or object instead of false.

WordPress Trac noreply at wordpress.org
Thu Jan 26 16:40:54 UTC 2017


#37738: WP_Post::get_instance returns erroneous data for invalid input such as an
array or object instead of false.
--------------------------------------+---------------------------
 Reporter:  deeptiboddapati           |       Owner:  boonebgorges
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  4.8
Component:  Posts, Post Types         |     Version:  3.5
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------
Changes (by johnjamesjacoby):

 * status:  closed => reopened
 * resolution:  fixed =>
 * milestone:  4.7 => 4.8


Comment:

 There are reports coming in via Slack that this caused issues with plugins
 that weren't prepared to correctly handle the newer, quality-controlled
 return values. After a quick chat, I'm reopening this so we can: revert
 this to stop that plugin breakage, and look into a better solution in 4.8
 or beyond.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37738#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list