diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/xmlrpc.php --- a/wp/xmlrpc.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/xmlrpc.php Tue Dec 15 13:49:49 2020 +0100 @@ -15,19 +15,20 @@ // 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. +// $HTTP_RAW_POST_DATA was deprecated in PHP 5.6 and removed in PHP 7.0. +// phpcs:disable PHPCompatibility.Variables.RemovedPredefinedGlobalVariables.http_raw_post_dataDeprecatedRemoved if ( ! isset( $HTTP_RAW_POST_DATA ) ) { $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' ); } -// fix for mozBlog and other cases where 'serve_request(); exit; @@ -96,7 +97,7 @@ * @param string $io Whether input or output * @param string $msg Information describing logging reason. */ -function logIO( $io, $msg ) { +function logIO( $io, $msg ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) { error_log( $io . ' - ' . $msg );