Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [20996] trunk/wp-includes/class-wp-xmlrpc-server.php: Combine \' Invalid term ID.\' into the \'Invalid term ID\' string. Date:Tue, 5 Jun 2012 16:25:05 +0000 (UTC)
 

Revision
20996
Author
nacin
Date
2012-06-05 16:25:05 +0000 (Tue, 05 Jun 2012)

Log Message

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

Modified Paths

Diff

Modified: trunk/wp-includes/class-wp-xmlrpc-server.php (20995 => 20996)


--- trunk/wp-includes/class-wp-xmlrpc-server.php	2012-06-05 12:26:57 UTC (rev 20995)
+++ trunk/wp-includes/class-wp-xmlrpc-server.php	2012-06-05 16:25:05 UTC (rev 20996)
@@ -1579,7 +1579,7 @@
 			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 @@
 			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 @@
 			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 );
 	}