diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/xmlrpc.php --- a/wp/xmlrpc.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/xmlrpc.php Fri Sep 05 18:40:08 2025 +0200 @@ -6,13 +6,13 @@ */ /** - * Whether this is an XML-RPC Request + * Whether this is an XML-RPC Request. * * @var bool */ define( 'XMLRPC_REQUEST', true ); -// Some browser-embedded clients send cookies. We don't want them. +// Discard unneeded cookies sent by some browser-embedded clients. $_COOKIE = array(); // $HTTP_RAW_POST_DATA was deprecated in PHP 5.6 and removed in PHP 7.0. @@ -30,7 +30,7 @@ /** Include the bootstrap for setting up WordPress environment */ require_once __DIR__ . '/wp-load.php'; -if ( isset( $_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html +if ( isset( $_GET['rsd'] ) ) { // https://cyber.harvard.edu/blogs/gems/tech/rsd.html header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); echo ''; ?> @@ -46,9 +46,9 @@ serve_request(); @@ -91,13 +91,16 @@ /** * logIO() - Writes logging info to a file. * + * @since 1.2.0 * @deprecated 3.4.0 Use error_log() * @see error_log() * - * @param string $io Whether input or output + * @global int|bool $xmlrpc_logging Whether to enable XML-RPC logging. + * + * @param string $io Whether input or output. * @param string $msg Information describing logging reason. */ -function logIO( $io, $msg ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid +function logIO( $io, $msg ) { _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) { error_log( $io . ' - ' . $msg );