[2.1] When linking variations, use slugs #5490

This commit is contained in:
Mike Jolley 2014-06-02 15:27:57 +01:00
parent ce04fe3d86
commit 22a37e860f
1 changed files with 1 additions and 1 deletions

View File

@ -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'] );
}