From 6b37ee4b4826716c064b8a9c6c8f01f24a869704 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Wed, 25 Nov 2015 22:21:51 +0000 Subject: [PATCH] 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 --- src/wp-includes/rest-api/class-wp-rest-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php index 37c697e43f..62f7343069 100644 --- a/src/wp-includes/rest-api/class-wp-rest-server.php +++ b/src/wp-includes/rest-api/class-wp-rest-server.php @@ -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; /*