diff --git a/readme.txt b/readme.txt index d67694da66a..af21c309220 100644 --- a/readme.txt +++ b/readme.txt @@ -167,6 +167,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc * Tweak - Payment gateway API tweaks - get_title, get_icon, get_description * Tweak - Price filter widgets takes you back to page 1. * Tweak - Changed microdata for offers/product so its picked up by google +* Tweak - woocommerce_attribute filter if needed * Fix - Widget init function conflict with widget logic * Fix - PLN currency code * Fix - Variation get shipping class ID diff --git a/templates/single-product/product-attributes.php b/templates/single-product/product-attributes.php index 09b9cebd973..d121547bbc3 100644 --- a/templates/single-product/product-attributes.php +++ b/templates/single-product/product-attributes.php @@ -48,15 +48,15 @@ if ( empty( $attributes ) && ( ! $product->enable_dimensions_display() || ( ! $p attribute_label( $attribute['name'] ); ?> id, $attribute['name'], 'names' ) ); + + $values = woocommerce_get_product_terms( $product->id, $attribute['name'], 'names' ); + echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ); } else { - // Convert pipes to commas - $value = explode( '|', $attribute['value'] ); - $value = implode( ', ', $value ); - echo wpautop( wptexturize( $value ) ); + // Convert pipes to commas and display values + $values = explode( '|', $attribute['value'] ); + echo apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ); } ?>