Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@6026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
+5
-5
@@ -5,7 +5,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,
|
||||
// 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' );
|
||||
@@ -17,7 +17,7 @@ if ( isset($HTTP_RAW_POST_DATA) )
|
||||
|
||||
include('./wp-config.php');
|
||||
|
||||
if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
|
||||
if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
|
||||
header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
|
||||
|
||||
?>
|
||||
@@ -723,7 +723,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
fclose($f);
|
||||
|
||||
/* so it is actually editable with a windows/mac client */
|
||||
// FIXME: (or delete me) do we really want to cater to bad clients at the expense of good ones by BEEPing up their line breaks? commented. $content = str_replace("\n", "\r\n", $content);
|
||||
// FIXME: (or delete me) do we really want to cater to bad clients at the expense of good ones by BEEPing up their line breaks? commented. $content = str_replace("\n", "\r\n", $content);
|
||||
|
||||
return $content;
|
||||
}
|
||||
@@ -1028,7 +1028,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
switch($content_struct['mt_allow_pings']) {
|
||||
case "closed":
|
||||
$ping_status = "closed";
|
||||
break;
|
||||
break;
|
||||
case "open":
|
||||
$ping_status = "open";
|
||||
break;
|
||||
@@ -1238,7 +1238,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
switch($content_struct["mt_allow_pings"]) {
|
||||
case "closed":
|
||||
$ping_status = "closed";
|
||||
break;
|
||||
break;
|
||||
case "open":
|
||||
$ping_status = "open";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user