diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 89cda31924a..a9c2f74a9f1 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -632,7 +632,7 @@ class WC_AJAX { ob_start(); $attributes = $product->get_attributes( 'edit' ); $i = -1; - if( ! empty( $data['attribute_names'] ) ) { + if ( ! empty( $data['attribute_names'] ) ) { foreach ( $data['attribute_names'] as $attribute_name ) { $attribute = isset( $attributes[ sanitize_title( $attribute_name ) ] ) ? $attributes[ sanitize_title( $attribute_name ) ] : false; if ( ! $attribute ) {