Changeset 47926 for trunk/src/wp-includes/rest-api/class-wp-rest-server.php
- Timestamp:
- 06/08/2020 07:53:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r47849 r47926 1372 1372 */ 1373 1373 public static function get_raw_data() { 1374 // phpcs:disable PHPCompatibility.Variables.RemovedPredefinedGlobalVariables.http_raw_post_dataDeprecatedRemoved 1374 1375 global $HTTP_RAW_POST_DATA; 1375 1376 1376 /* 1377 * A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set by default, 1378 * but we can do it ourself. 1379 */ 1377 // $HTTP_RAW_POST_DATA was deprecated in PHP 5.6 and removed in PHP 7.0. 1380 1378 if ( ! isset( $HTTP_RAW_POST_DATA ) ) { 1381 1379 $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' ); … … 1383 1381 1384 1382 return $HTTP_RAW_POST_DATA; 1383 // phpcs:enable 1385 1384 } 1386 1385
Note: See TracChangeset
for help on using the changeset viewer.