label
This commit is contained in:
parent
d0d440042a
commit
bdfdb074cd
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue