Increment later. Closes #3811.

@coenjacobs .15
This commit is contained in:
Mike Jolley 2013-09-27 15:28:58 +01:00
parent 43337f896c
commit 9dcb70feba
1 changed files with 3 additions and 1 deletions

View File

@ -418,7 +418,7 @@ class WC_Meta_Box_Product_Data {
// Taxonomies // Taxonomies
if ( $attribute_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) // Get name of taxonomy we're now outputting (pa_xxx)
$attribute_taxonomy_name = wc_attribute_taxonomy_name( $tax->attribute_name ); $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 ) ) if ( ! taxonomy_exists( $attribute_taxonomy_name ) )
continue; continue;
$i++;
// Get product data values for current taxonomy - this contains ordering and visibility data // Get product data values for current taxonomy - this contains ordering and visibility data
if ( isset( $attributes[ sanitize_title( $attribute_taxonomy_name ) ] ) ) if ( isset( $attributes[ sanitize_title( $attribute_taxonomy_name ) ] ) )
$attribute = $attributes[ sanitize_title( $attribute_taxonomy_name ) ]; $attribute = $attributes[ sanitize_title( $attribute_taxonomy_name ) ];