Formatting cleanup. see #18429

git-svn-id: http://svn.automattic.com/wordpress/trunk@19869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-02-08 16:04:58 +00:00
parent 357fc30771
commit 4c3c859461
1 changed files with 3 additions and 5 deletions

View File

@ -683,7 +683,7 @@ class wp_xmlrpc_server extends IXR_Server {
if ( ! empty( $post_data['post_date_gmt'] ) ) { 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 // 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'; $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(); $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() ); return new IXR_Error( 500, $term_info->get_error_message() );
$terms[$taxonomy][] = (int) $term_info['term_id']; $terms[$taxonomy][] = (int) $term_info['term_id'];
} } else {
else {
$terms[$taxonomy][] = (int) $term->term_id; $terms[$taxonomy][] = (int) $term->term_id;
} }
} }
@ -797,8 +796,7 @@ class wp_xmlrpc_server extends IXR_Server {
$post_data['tax_input'] = $terms; $post_data['tax_input'] = $terms;
unset( $post_data['terms'] ); unset( $post_data['terms'] );
unset( $post_data['terms_names'] ); unset( $post_data['terms_names'] );
} } else {
else {
// do not allow direct submission of 'tax_input', clients must use 'terms' and/or 'terms_names' // do not allow direct submission of 'tax_input', clients must use 'terms' and/or 'terms_names'
unset( $post_data['tax_input'] ); unset( $post_data['tax_input'] );
} }