WordPress.org

Make WordPress Core

Ticket #20765: attachment-fields-to-edit.patch

File attachment-fields-to-edit.patch, 378 bytes (added by eddiemoya, 23 months ago)

Changes term->name to term->slug in attachment_fields_to_edit() function in /wp-admin/includes/media.php

  • includes/media.php

     
    979979                $values = array(); 
    980980 
    981981                foreach ( $terms as $term ) 
    982                         $values[] = $term->name; 
     982                        $values[] = $term->slug; 
    983983                $t['value'] = join(', ', $values); 
    984984 
    985985                $form_fields[$taxonomy] = $t;