Some WordPress 5.2.2 files seem incompatible with PHP 7.2
-
Hi, I’m posting here because I couldn’t find a Forum specific to PHP upgrades. Sorry if this is the wrong place.
I’m in the process of preparing my site to upgrade from PHP 5.6 to 7.2. The site runs WordPress 5.2.2.
In examining deprecations and removed code in this 7.0 compatibility page, I find several cases where there are files in wp-includes/ that have code that’s not supposed to work in 7.2. I don’t know whether this code is being currently executed but I want to avoid a problem later on. Here’s just one example of many for brevity.
The page above says:
“$HTTP_RAW_POST_DATA removed$HTTP_RAW_POST_DATA is no longer available. The php://input stream should be used instead.”
But in this file: wp-includes/rest-api/class-wp-rest-server.php
Line 1292: * @global string $HTTP_RAW_POST_DATA Raw post data.
Line 1303/1304: if ( ! isset( $HTTP_RAW_POST_DATA ) ) {
$HTTP_RAW_POST_DATA = file_get_contents( ‘php://input’ );So should I worry about this or it’s magically taken care of?
Thanks.
- The topic ‘Some WordPress 5.2.2 files seem incompatible with PHP 7.2’ is closed to new replies.