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. Built from https://develop.svn.wordpress.org/trunk@35741 git-svn-id: http://core.svn.wordpress.org/trunk@35705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e24681632e
commit
7ce9772866
|
@ -1158,7 +1158,7 @@ class WP_REST_Server {
|
|||
*
|
||||
* @return string Raw request data.
|
||||
*/
|
||||
public function get_raw_data() {
|
||||
public static function get_raw_data() {
|
||||
global $HTTP_RAW_POST_DATA;
|
||||
|
||||
/*
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta4-35740';
|
||||
$wp_version = '4.4-beta4-35741';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue