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:
parent
ac95404db8
commit
2501af58b6
|
@ -1579,7 +1579,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
return new IXR_Error( 500, $term->get_error_message() );
|
return new IXR_Error( 500, $term->get_error_message() );
|
||||||
|
|
||||||
if ( ! $term )
|
if ( ! $term )
|
||||||
return new IXR_Error( 404, __( 'Invalid term ID.' ) );
|
return new IXR_Error( 404, __( 'Invalid term ID' ) );
|
||||||
|
|
||||||
if ( isset( $content_struct['name'] ) ) {
|
if ( isset( $content_struct['name'] ) ) {
|
||||||
$term_data['name'] = trim( $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() );
|
return new IXR_Error( 500, $term->get_error_message() );
|
||||||
|
|
||||||
if ( ! $term )
|
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 );
|
$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() );
|
return new IXR_Error( 500, $term->get_error_message() );
|
||||||
|
|
||||||
if ( ! $term )
|
if ( ! $term )
|
||||||
return new IXR_Error( 404, __( 'Invalid term ID.' ) );
|
return new IXR_Error( 404, __( 'Invalid term ID' ) );
|
||||||
|
|
||||||
return $this->_prepare_term( $term );
|
return $this->_prepare_term( $term );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue