From 4c3c85946143a7baaf3a9d996222947b098c5c65 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 8 Feb 2012 16:04:58 +0000 Subject: [PATCH] Formatting cleanup. see #18429 git-svn-id: http://svn.automattic.com/wordpress/trunk@19869 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 28545e595a..365314044a 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -683,7 +683,7 @@ class wp_xmlrpc_server extends IXR_Server { if ( ! empty( $post_data['post_date_gmt'] ) ) { // We know this is supposed to be GMT, so we're going to slap that Z on there by force $dateCreated = str_replace( 'Z', '', $post_data['post_date_gmt']->getIso() ) . 'Z'; - }elseif ( ! empty( $post_data['post_date'] ) ) { + } elseif ( ! empty( $post_data['post_date'] ) ) { $dateCreated = $post_data['post_date']->getIso(); } @@ -786,8 +786,7 @@ class wp_xmlrpc_server extends IXR_Server { return new IXR_Error( 500, $term_info->get_error_message() ); $terms[$taxonomy][] = (int) $term_info['term_id']; - } - else { + } else { $terms[$taxonomy][] = (int) $term->term_id; } } @@ -797,8 +796,7 @@ class wp_xmlrpc_server extends IXR_Server { $post_data['tax_input'] = $terms; unset( $post_data['terms'] ); unset( $post_data['terms_names'] ); - } - else { + } else { // do not allow direct submission of 'tax_input', clients must use 'terms' and/or 'terms_names' unset( $post_data['tax_input'] ); }