WordPress.org

Make WordPress Core

Changeset 21889


Ignore:
Timestamp:
09/18/2012 05:34:01 PM (6 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r21871 r21889  
    979979
    980980        foreach ( $terms as $term )
    981             $values[] = $term->name;
     981            $values[] = $term->slug;
    982982        $t['value'] = join(', ', $values);
    983983
Note: See TracChangeset for help on using the changeset viewer.