Skip to content

Commit 6b37ee4

Browse files
committed
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
1 parent 4c249c3 commit 6b37ee4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/rest-api/class-wp-rest-server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ public function send_headers( $headers ) {
11581158
*
11591159
* @return string Raw request data.
11601160
*/
1161-
public function get_raw_data() {
1161+
public static function get_raw_data() {
11621162
global $HTTP_RAW_POST_DATA;
11631163

11641164
/*

0 commit comments

Comments
 (0)