From 7ce9772866855defb3156817d1727b5fa7dd022a Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Wed, 25 Nov 2015 22:22:25 +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. Built from https://develop.svn.wordpress.org/trunk@35741 git-svn-id: http://core.svn.wordpress.org/trunk@35705 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rest-api/class-wp-rest-server.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php index 37c697e43f..62f7343069 100644 --- a/wp-includes/rest-api/class-wp-rest-server.php +++ b/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; /* diff --git a/wp-includes/version.php b/wp-includes/version.php index e6e74bd674..9d2849f230 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.