Return term slugs rather than term names in attachment_fields_to_edit() as that is what we are dealing with. props eddiemoya, fixes #20765.

git-svn-id: https://develop.svn.wordpress.org/trunk@21889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-09-18 17:34:01 +00:00
parent 5869cbc05a
commit ac948ddef7
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,7 @@ function get_attachment_fields_to_edit($post, $errors = null) {
$values = array();
foreach ( $terms as $term )
$values[] = $term->name;
$values[] = $term->slug;
$t['value'] = join(', ', $values);
$form_fields[$taxonomy] = $t;