parent
43337f896c
commit
9dcb70feba
|
@ -418,7 +418,7 @@ class WC_Meta_Box_Product_Data {
|
|||
|
||||
// Taxonomies
|
||||
if ( $attribute_taxonomies ) {
|
||||
foreach ( $attribute_taxonomies as $tax ) { $i++;
|
||||
foreach ( $attribute_taxonomies as $tax ) {
|
||||
|
||||
// Get name of taxonomy we're now outputting (pa_xxx)
|
||||
$attribute_taxonomy_name = wc_attribute_taxonomy_name( $tax->attribute_name );
|
||||
|
@ -427,6 +427,8 @@ class WC_Meta_Box_Product_Data {
|
|||
if ( ! taxonomy_exists( $attribute_taxonomy_name ) )
|
||||
continue;
|
||||
|
||||
$i++;
|
||||
|
||||
// Get product data values for current taxonomy - this contains ordering and visibility data
|
||||
if ( isset( $attributes[ sanitize_title( $attribute_taxonomy_name ) ] ) )
|
||||
$attribute = $attributes[ sanitize_title( $attribute_taxonomy_name ) ];
|
||||
|
|
Loading…
Reference in New Issue