Skip to content

Commit

Permalink
Handle shipping item taxes if set to avoid the legacy fallback
Browse files Browse the repository at this point in the history
Fixes #15127
  • Loading branch information
mikejolley committed May 18, 2017
1 parent cac5b33 commit 56a3b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-order-item-shipping.php
Expand Up @@ -97,7 +97,7 @@ public function set_taxes( $raw_tax_data ) {
$tax_data = array(
'total' => array(),
);
if ( ! empty( $raw_tax_data['total'] ) ) {
if ( isset( $raw_tax_data['total'] ) ) {
$tax_data['total'] = array_map( 'wc_format_decimal', $raw_tax_data['total'] );
} elseif ( ! empty( $raw_tax_data ) && is_array( $raw_tax_data ) ) {
// Older versions just used an array.
Expand Down

0 comments on commit 56a3b31

Please sign in to comment.