diff --git a/readme.txt b/readme.txt index 9f6db916d7a..75cbd256974 100644 --- a/readme.txt +++ b/readme.txt @@ -159,6 +159,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - Remove case sensitively from order tracking and force email lowercase on checkout * Tweak - woocommerce_update_variation_values trigger in JS * Tweak - Optimised price filter query (Thanks Lucas Stark) +* Tweak - woocommerce_attribute_label filter * Fix - After tax coupons for categories * Fix - Multiple variation image upload * Fix - User email check for coupons diff --git a/woocommerce.php b/woocommerce.php index 19b9445503f..bb0f417ecde 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -1184,14 +1184,14 @@ class Woocommerce { if ( strstr( $name, 'pa_' ) ) { $name = str_replace( 'pa_', '', sanitize_title( $name ) ); - $label = $wpdb->get_var( $wpdb->prepare( "SELECT attribute_label FROM ".$wpdb->prefix."woocommerce_attribute_taxonomies WHERE attribute_name = %s;", $name ) ); + $label = $wpdb->get_var( $wpdb->prepare( "SELECT attribute_label FROM " . $wpdb->prefix . "woocommerce_attribute_taxonomies WHERE attribute_name = %s;", $name ) ); - if ( ! $label) $label = ucfirst($name); + if ( ! $label ) $label = ucfirst( $name ); } else { $label = $name; } - return apply_filters('woocommerce_attribute_label', $label, $name); + return apply_filters( 'woocommerce_attribute_label', $label, $name ); } /**