[2.1] When linking variations, use slugs #5490
This commit is contained in:
parent
ce04fe3d86
commit
22a37e860f
|
@ -691,7 +691,7 @@ class WC_AJAX {
|
|||
$attribute_field_name = 'attribute_' . sanitize_title( $attribute['name'] );
|
||||
|
||||
if ( $attribute['is_taxonomy'] ) {
|
||||
$options = wc_get_product_terms( $post_id, $attribute['name'], array( 'fields' => 'names' ) );
|
||||
$options = wc_get_product_terms( $post_id, $attribute['name'], array( 'fields' => 'slugs' ) );
|
||||
} else {
|
||||
$options = explode( WC_DELIMITER, $attribute['value'] );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue