Combine 'Invalid term ID.' into the 'Invalid term ID' string. props pavelevap. fixes #20809.

git-svn-id: https://develop.svn.wordpress.org/trunk@20996 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-05 16:25:05 +00:00
parent ac95404db8
commit 2501af58b6
1 changed files with 3 additions and 3 deletions

View File

@ -1579,7 +1579,7 @@ class wp_xmlrpc_server extends IXR_Server {
return new IXR_Error( 500, $term->get_error_message() );
if ( ! $term )
return new IXR_Error( 404, __( 'Invalid term ID.' ) );
return new IXR_Error( 404, __( 'Invalid term ID' ) );
if ( isset( $content_struct['name'] ) ) {
$term_data['name'] = trim( $content_struct['name'] );
@ -1666,7 +1666,7 @@ class wp_xmlrpc_server extends IXR_Server {
return new IXR_Error( 500, $term->get_error_message() );
if ( ! $term )
return new IXR_Error( 404, __( 'Invalid term ID.' ) );
return new IXR_Error( 404, __( 'Invalid term ID' ) );
$result = wp_delete_term( $term_id, $taxonomy->name );
@ -1733,7 +1733,7 @@ class wp_xmlrpc_server extends IXR_Server {
return new IXR_Error( 500, $term->get_error_message() );
if ( ! $term )
return new IXR_Error( 404, __( 'Invalid term ID.' ) );
return new IXR_Error( 404, __( 'Invalid term ID' ) );
return $this->_prepare_term( $term );
}