From 583e1fc28491f3a4f838fa64713687f3447c10b2 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 16 Jun 2015 14:08:46 +0100 Subject: [PATCH] Typo closes #8381 --- includes/shipping/flat-rate/class-wc-shipping-flat-rate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php b/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php index f676b2f7b85..6525469c36a 100644 --- a/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php +++ b/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php @@ -60,7 +60,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method { * @param array $args * @return string */ - protected function evalulate_cost( $sum, $args = array() ) { + protected function evaluate_cost( $sum, $args = array() ) { include_once( 'includes/class-wc-eval-math.php' ); add_shortcode( 'fee', array( $this, 'fee' ) ); @@ -125,7 +125,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method { if ( $cost !== '' ) { $has_costs = true; - $rate['cost'] = $this->evalulate_cost( $cost, array( + $rate['cost'] = $this->evaluate_cost( $cost, array( 'qty' => $this->get_package_item_qty( $package ), 'cost' => $package['contents_cost'] ) ); @@ -143,7 +143,7 @@ class WC_Shipping_Flat_Rate extends WC_Shipping_Method { } $has_costs = true; - $class_cost = $this->evalulate_cost( $class_cost_string, array( + $class_cost = $this->evaluate_cost( $class_cost_string, array( 'qty' => array_sum( wp_list_pluck( $products, 'quantity' ) ), 'cost' => array_sum( wp_list_pluck( $products, 'line_total' ) ) ) );