[wp-trac] [WordPress Trac] #49810: Remove workaround for $HTTP_RAW_POST_DATA bug present in PHP < 5.2.2
WordPress Trac
noreply at wordpress.org
Thu Jun 4 15:20:29 UTC 2020
#49810: Remove workaround for $HTTP_RAW_POST_DATA bug present in PHP < 5.2.2
-------------------------------------------------+-------------------------
Reporter: skoskie | Owner:
| SergeyBiryukov
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.5
Component: XML-RPC | Version: trunk
Severity: trivial | Resolution:
Keywords: has-patch needs-testing has-unit- | Focuses: rest-api
tests |
-------------------------------------------------+-------------------------
Comment (by jrf):
> But I think the logic still holds for someone wanting to get the raw
body before the REST request is available or they intentionally want to
get data for the global request.
@TimothyBlynJacobs They can without any problem by using
`file_get_contents('php://input')` which is the recommended alternative
for the removed PHP global.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49810#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list