This commit is contained in:
Mike Jolley 2019-02-27 11:56:00 +00:00
parent 913b8e84bf
commit c854e74471
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {