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: http://core.svn.wordpress.org/trunk@21889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8fd2fb4998
commit
96d002c4dd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue