From fb8c0707cbb34f3e84a5695fa78f2a7fe40195b6 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 8 Dec 2010 17:58:35 +0000 Subject: [PATCH] Herr Direktor von Leerzeichen ist nicht zufrieden! git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@16804 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index 09b04d20a5..5ec072b09e 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1187,7 +1187,7 @@ class wp_xmlrpc_server extends IXR_Server { if ( !current_user_can( 'moderate_comments' ) ) return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); - + if ( !$comment = get_comment( $comment_ID ) ) return new IXR_Error( 404, __( 'Invalid comment ID.' ) ); @@ -1999,7 +1999,7 @@ class wp_xmlrpc_server extends IXR_Server { return $this->error; do_action('xmlrpc_call', 'metaWeblog.newPost'); - + $page_template = ''; if ( !empty( $content_struct['post_type'] ) ) { if ( $content_struct['post_type'] == 'page' ) { @@ -2028,7 +2028,7 @@ class wp_xmlrpc_server extends IXR_Server { else $cap = 'edit_posts'; $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); - $post_type = 'post'; + $post_type = 'post'; } if ( !current_user_can( $cap ) ) @@ -2318,7 +2318,7 @@ class wp_xmlrpc_server extends IXR_Server { else $cap = 'edit_posts'; $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' ); - $post_type = 'post'; + $post_type = 'post'; } if ( !current_user_can( $cap ) )