REST API: Mark WP_REST_Server::get_raw_data as static.
This is just a utility function for getting the request body, not tied to the server class. Fixes #34768. git-svn-id: https://develop.svn.wordpress.org/trunk@35741 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4c249c3445
commit
6b37ee4b48
@ -1158,7 +1158,7 @@ class WP_REST_Server {
|
|||||||
*
|
*
|
||||||
* @return string Raw request data.
|
* @return string Raw request data.
|
||||||
*/
|
*/
|
||||||
public function get_raw_data() {
|
public static function get_raw_data() {
|
||||||
global $HTTP_RAW_POST_DATA;
|
global $HTTP_RAW_POST_DATA;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user