From 96d002c4dd110b22cbf5b659ca79b385231eb8a6 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 18 Sep 2012 17:34:01 +0000 Subject: [PATCH] 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 --- wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 9693bfa71f..2ef4a75d79 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -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;