Skip to content

Commit

Permalink
Fix function prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomollet committed Nov 28, 2017
1 parent 192a904 commit 292e607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions inc/plugins/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ 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 = '<span class="glyphicon glyphicon-remove"></span>';
$wsis_html = sprintf(
'<a href="%s" class="remove" title="%s"><span class="wsis-remove-item">%s</span></a>',
'<a href="%s" class="remove" title="%s"><span class="remove-item">%s</span></a>',
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
__( 'Remove this item', 'woocommerce' ), $button
);

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
Expand Down

0 comments on commit 292e607

Please sign in to comment.