Merge branch 'pr/11008'

This commit is contained in:
Mike Jolley 2016-05-31 11:04:19 +01:00
commit f98f6a39ee
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ class WC_Admin_Taxonomies {
$attribute_taxonomies = wc_get_attribute_taxonomies();
if ( $attribute_taxonomies ) {
foreach ( array_keys( $attribute_taxonomies ) as $attribute ) {
add_action( $attribute . '_pre_add_form', array( $this, 'product_attribute_description' ) );
foreach ( $attribute_taxonomies as $attribute ) {
add_action( 'pa_' . $attribute->attribute_name . '_pre_add_form', array( $this, 'product_attribute_description' ) );
}
}