Ticket #20809: duplicate_strings_2.patch
File duplicate_strings_2.patch, 1.1 KB (added by , 12 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
1579 1579 return new IXR_Error( 500, $term->get_error_message() ); 1580 1580 1581 1581 if ( ! $term ) 1582 return new IXR_Error( 404, __( 'Invalid term ID .' ) );1582 return new IXR_Error( 404, __( 'Invalid term ID' ) ); 1583 1583 1584 1584 if ( isset( $content_struct['name'] ) ) { 1585 1585 $term_data['name'] = trim( $content_struct['name'] ); … … 1666 1666 return new IXR_Error( 500, $term->get_error_message() ); 1667 1667 1668 1668 if ( ! $term ) 1669 return new IXR_Error( 404, __( 'Invalid term ID .' ) );1669 return new IXR_Error( 404, __( 'Invalid term ID' ) ); 1670 1670 1671 1671 $result = wp_delete_term( $term_id, $taxonomy->name ); 1672 1672 … … 1733 1733 return new IXR_Error( 500, $term->get_error_message() ); 1734 1734 1735 1735 if ( ! $term ) 1736 return new IXR_Error( 404, __( 'Invalid term ID .' ) );1736 return new IXR_Error( 404, __( 'Invalid term ID' ) ); 1737 1737 1738 1738 return $this->_prepare_term( $term ); 1739 1739 }