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