Use term ID, not slug

Fixes #13731
This commit is contained in:
Mike Jolley 2017-03-23 11:13:32 +00:00
parent 8a9e55ed33
commit ece81deb8e
2 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ jQuery( function( $ ) {
window.alert( response.error );
} else if ( response.slug ) {
// Success.
$wrapper.find( 'select.attribute_values' ).append( '<option value="' + response.slug + '" selected="selected">' + response.name + '</option>' );
$wrapper.find( 'select.attribute_values' ).append( '<option value="' + response.term_id + '" selected="selected">' + response.name + '</option>' );
$wrapper.find( 'select.attribute_values' ).change();
}

File diff suppressed because one or more lines are too long