[API] Fixed the returned status when delete a product attribute

This commit is contained in:
Claudio Sanches 2015-04-28 15:56:28 -03:00
parent 8d339a7022
commit 0a3fc7673e
1 changed files with 0 additions and 2 deletions

View File

@ -2269,8 +2269,6 @@ class WC_API_Products extends WC_API_Resource {
// Clear transients
delete_transient( 'wc_attribute_taxonomies' );
$this->server->send_status( '202' );
return array( 'message' => sprintf( __( 'Deleted %s', 'woocommerce' ), 'product_attribute' ) );
} catch ( WC_API_Exception $e ) {
return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );