[API] Fixed build taxes return

This commit is contained in:
Claudio Sanches 2015-12-18 19:08:09 -02:00
parent 89581d1541
commit 032265b1ed
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ class WC_API_Taxes extends WC_API_Resource {
}
}
return array( 'taxes' => apply_filters( 'woocommerce_api_taxes_bulk_response', $orders, $this ) );
return array( 'taxes' => apply_filters( 'woocommerce_api_taxes_bulk_response', $taxes, $this ) );
} catch ( WC_API_Exception $e ) {
return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
}