Formatting cleanup. see #18429
git-svn-id: http://svn.automattic.com/wordpress/trunk@19869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
357fc30771
commit
4c3c859461
|
@ -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'] );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue