mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +00:00
Text Changes: Add a full stop to "Invalid taxonomy" and "Invalid term ID" strings, for consistency with similar post-related messages.
See #18218, #32329. git-svn-id: https://develop.svn.wordpress.org/trunk@38077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1426,7 +1426,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$term = get_term_by( 'id', $term_id, $taxonomy );
|
||||
|
||||
if ( ! $term )
|
||||
return new IXR_Error( 403, __( 'Invalid term ID' ) );
|
||||
return new IXR_Error( 403, __( 'Invalid term ID.' ) );
|
||||
|
||||
$terms[$taxonomy][] = (int) $term_id;
|
||||
}
|
||||
@@ -1873,7 +1873,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.newTerm' );
|
||||
|
||||
if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
|
||||
|
||||
$taxonomy = get_taxonomy( $content_struct['taxonomy'] );
|
||||
|
||||
@@ -1960,7 +1960,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.editTerm' );
|
||||
|
||||
if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
|
||||
|
||||
$taxonomy = get_taxonomy( $content_struct['taxonomy'] );
|
||||
|
||||
@@ -1978,7 +1978,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'] );
|
||||
@@ -2056,7 +2056,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.deleteTerm' );
|
||||
|
||||
if ( ! taxonomy_exists( $taxonomy ) )
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
|
||||
|
||||
$taxonomy = get_taxonomy( $taxonomy );
|
||||
|
||||
@@ -2069,7 +2069,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 );
|
||||
|
||||
@@ -2127,7 +2127,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.getTerm' );
|
||||
|
||||
if ( ! taxonomy_exists( $taxonomy ) )
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
|
||||
|
||||
$taxonomy = get_taxonomy( $taxonomy );
|
||||
|
||||
@@ -2140,7 +2140,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 );
|
||||
}
|
||||
@@ -2185,7 +2185,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.getTerms' );
|
||||
|
||||
if ( ! taxonomy_exists( $taxonomy ) )
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
|
||||
|
||||
$taxonomy = get_taxonomy( $taxonomy );
|
||||
|
||||
@@ -2280,7 +2280,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action( 'xmlrpc_call', 'wp.getTaxonomy' );
|
||||
|
||||
if ( ! taxonomy_exists( $taxonomy ) )
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy' ) );
|
||||
return new IXR_Error( 403, __( 'Invalid taxonomy.' ) );
|
||||
|
||||
$taxonomy = get_taxonomy( $taxonomy );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user