Merge pull request #17727 from woocommerce/fix/get_object_subtotal

Fix variable in get_object_subtotal
This commit is contained in:
Mike Jolley 2017-11-16 12:03:58 +00:00 committed by GitHub
commit 67144be628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ class WC_Discounts {
protected function get_object_subtotal() {
if ( is_a( $this->object, 'WC_Cart' ) ) {
return wc_add_number_precision( $this->object->get_displayed_subtotal() );
} elseif ( is_a( $object, 'WC_Order' ) ) {
} elseif ( is_a( $this->object, 'WC_Order' ) ) {
return wc_add_number_precision( $this->object->get_subtotal() );
} else {
return array_sum( wp_list_pluck( $this->items, 'price' ) );