Skip to content

Commit

Permalink
Fix variation attributes check
Browse files Browse the repository at this point in the history
$attribute['is_variation'] returns an integer. 0 if not checked, 1 if checked. So it is always set if the attribute has been created.
  • Loading branch information
WPprodigy committed Aug 26, 2015
1 parent c9901ce commit eb24546
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ public static function output_variations() {

if ( $attributes ) {
foreach ( $attributes as $attribute ) {
if ( isset( $attribute['is_variation'] ) ) {
if ( $attribute['is_variation'] === 1 ) {
$variation_attribute_found = true;
break;
}
Expand Down

0 comments on commit eb24546

Please sign in to comment.