diff -r c7c34916027a -r 177826044cd9 wp/xmlrpc.php --- a/wp/xmlrpc.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/xmlrpc.php Mon Oct 14 18:28:13 2019 +0200 @@ -10,65 +10,67 @@ * * @var bool */ -define('XMLRPC_REQUEST', true); +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 ) ) { +if ( ! isset( $HTTP_RAW_POST_DATA ) ) { $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' ); } // fix for mozBlog and other cases where ' -'; ?> + header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); + echo ''; + ?> - - WordPress - https://wordpress.org/ - - - - - - - - - + + WordPress + https://wordpress.org/ + + + + + + + + + -serve_request(); @@ -96,6 +98,7 @@ */ function logIO( $io, $msg ) { _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); - if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) + if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) { error_log( $io . ' - ' . $msg ); -} \ No newline at end of file + } +}