From 9521f44cb2918410f9d4f6290a5f02dac7204a8e Mon Sep 17 00:00:00 2001 From: Gregory K Date: Tue, 11 Feb 2014 07:49:02 -0500 Subject: [PATCH] wc-cart-functions : removed unused $woocommerce and fixed phpdocs --- includes/wc-cart-functions.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/wc-cart-functions.php b/includes/wc-cart-functions.php index 6c23bd115a8..b60c74147d3 100644 --- a/includes/wc-cart-functions.php +++ b/includes/wc-cart-functions.php @@ -50,7 +50,6 @@ add_action( 'wp_logout', 'wc_empty_cart' ); * @return void */ function wc_load_persistent_cart( $user_login, $user = 0 ) { - global $woocommerce; if ( ! $user ) return; @@ -68,11 +67,10 @@ add_action( 'wp_login', 'wc_load_persistent_cart', 1, 2 ); * Add to cart messages. * * @access public - * @param int $product_id + * @param int|array $product_id * @return void */ function wc_add_to_cart_message( $product_id ) { - global $woocommerce; if ( is_array( $product_id ) ) { @@ -111,7 +109,7 @@ function wc_add_to_cart_message( $product_id ) { * @return void */ function wc_clear_cart_after_payment() { - global $woocommerce, $wp; + global $wp; if ( ! empty( $wp->query_vars['order-received'] ) ) { @@ -175,7 +173,7 @@ function wc_cart_totals_shipping_html() { * Get a coupon value * * @access public - * @param string $code + * @param string $coupon * @return void */ function wc_cart_totals_coupon_html( $coupon ) {