From dbcf4de41f2138e678d8246558fa360fae78c013 Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Wed, 19 Nov 2014 09:46:15 -0200 Subject: [PATCH] Fixed WC_Cart::get_cart_item() return type --- includes/class-wc-cart.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-cart.php b/includes/class-wc-cart.php index 6ace47e3a71..7f5bdea0a67 100644 --- a/includes/class-wc-cart.php +++ b/includes/class-wc-cart.php @@ -668,7 +668,7 @@ class WC_Cart { * @return string url to page */ public function get_undo_url( $product_id, $quantity = 1, $variation_id = '', $variation = '' ) { - $cart_page_id = wc_get_page_id('cart'); + $cart_page_id = wc_get_page_id( 'cart' ); $query_args = array( 'undo_item' => $product_id, @@ -718,7 +718,7 @@ class WC_Cart { return $this->cart_contents[ $item_key ]; } - return false; + return array(); } /**