Fixed WC_Cart::get_cart_item() return type

This commit is contained in:
claudiosmweb 2014-11-19 09:46:15 -02:00
parent c7dc0947c4
commit dbcf4de41f
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
/**