wp/xmlrpc.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    20 if ( ! isset( $HTTP_RAW_POST_DATA ) ) {
    20 if ( ! isset( $HTTP_RAW_POST_DATA ) ) {
    21 	$HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );
    21 	$HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );
    22 }
    22 }
    23 
    23 
    24 // Fix for mozBlog and other cases where '<?xml' isn't on the very first line.
    24 // Fix for mozBlog and other cases where '<?xml' isn't on the very first line.
    25 if ( isset( $HTTP_RAW_POST_DATA ) ) {
    25 $HTTP_RAW_POST_DATA = trim( $HTTP_RAW_POST_DATA );
    26 	$HTTP_RAW_POST_DATA = trim( $HTTP_RAW_POST_DATA );
       
    27 }
       
    28 // phpcs:enable
    26 // phpcs:enable
    29 
    27 
    30 /** Include the bootstrap for setting up WordPress environment */
    28 /** Include the bootstrap for setting up WordPress environment */
    31 require_once __DIR__ . '/wp-load.php';
    29 require_once __DIR__ . '/wp-load.php';
    32 
    30