From 51466ca18fead7fd5e74ce466d7c9999bf110919 Mon Sep 17 00:00:00 2001
From: Shelton Koskie <shelton@eightygrit.com>
Date: Sat, 4 Apr 2020 11:45:53 -0600
Subject: [PATCH] XML-RPC: Removed workaround for PHP < 5.2.2 bug

That version of PHP is no longer supported.

Signed-off-by: Shelton Koskie <shelton@eightygrit.com>
---
 src/xmlrpc.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/xmlrpc.php b/src/xmlrpc.php
index 00bd97e8df..2fc75c1e7f 100644
--- a/src/xmlrpc.php
+++ b/src/xmlrpc.php
@@ -15,11 +15,7 @@ define( 'XMLRPC_REQUEST', true );
 // Some browser-embedded clients send cookies. We don't want them.
 $_COOKIE = array();
 
-// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set by default,
-// but we can do it ourself.
-if ( ! isset( $HTTP_RAW_POST_DATA ) ) {
-	$HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );
-}
+$HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );
 
 // Fix for mozBlog and other cases where '<?xml' isn't on the very first line.
 if ( isset( $HTTP_RAW_POST_DATA ) ) {
-- 
2.24.0

