[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:52: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:
--------------------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"39992"]:
{{{
#!CommitTicketReference repository="" revision="39992"
Revert to pre-4.7 behavior for fetching object instances by id.
This changeset reverts [38381], which caused inconsistencies in the way
the
REST API fetches posts and other objects.
See #38792, #37738.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37738#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list