From 292e6076c5082a26220e331464122a5cbf420a9e Mon Sep 17 00:00:00 2001 From: Nico Mollet Date: Tue, 28 Nov 2017 15:22:50 +0100 Subject: [PATCH] Fix function prefix --- CHANGELOG.md | 1 + inc/plugins/woocommerce.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0ea437..6c8aaaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ### Unreleased * **Fix** - Nav Stuck To Top: adjust to #navigation height, not #header height * **Fix** - WooCommerce: products per page on product_tag +* **Tweak** - Woocommerce Grid/List Toggle: change position of html description (after title, instead of after price) ### 0.4.2: November 20th, 2017 * **Fix** - WooCommerce: number of products in admin diff --git a/inc/plugins/woocommerce.php b/inc/plugins/woocommerce.php index 4736fda..33c66a7 100644 --- a/inc/plugins/woocommerce.php +++ b/inc/plugins/woocommerce.php @@ -108,11 +108,11 @@ function stormbringer_woocommerce_products_per_page( $query ) { * * @return string */ -function wsis_woocommerce_remove_item( $wsis_html, $cart_item_key ) { +function woocommerce_woocommerce_remove_item( $wsis_html, $cart_item_key ) { $button = __( 'Remove this item', 'woocommerce' ); $button = ''; $wsis_html = sprintf( - '%s', + '%s', esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), __( 'Remove this item', 'woocommerce' ), $button ); @@ -120,7 +120,7 @@ function wsis_woocommerce_remove_item( $wsis_html, $cart_item_key ) { return $wsis_html; } -add_filter( 'woocommerce_cart_item_remove_link', 'wsis_woocommerce_remove_item', 10, 2 ); +add_filter( 'woocommerce_cart_item_remove_link', 'woocommerce_woocommerce_remove_item', 10, 2 ); /** * Woocommerce: Customize form fields