This commit is contained in:
Mike Jolley 2012-03-23 21:06:49 +00:00
parent d0d440042a
commit bdfdb074cd
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

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