[wp-trac] [WordPress Trac] #43502: `WP_REST_Posts_Controller::prepare_item_for_response()` doesn't reset postdata after calling setup_postdata()
WordPress Trac
noreply at wordpress.org
Thu Mar 8 17:10:28 UTC 2018
#43502: `WP_REST_Posts_Controller::prepare_item_for_response()` doesn't reset
postdata after calling setup_postdata()
------------------------------------------+-----------------------
Reporter: gerbenvandijk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.5
Component: REST API | Version: 4.9.4
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+-----------------------
Changes (by SergeyBiryukov):
* keywords: => needs-patch needs-unit-tests
* milestone: Awaiting Review => 4.9.5
Comment:
Hi @gerbenvandijk, welcome to WordPress Trac! Thanks for the report.
`WP_REST_Revisions_Controller::prepare_item_for_response()` has the same
issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43502#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list