[wp-trac] [WordPress Trac] #40638: In attachments taxonomy displays slug instead of name

WordPress Trac noreply at wordpress.org
Tue May 2 16:53:51 UTC 2017


#40638: In attachments taxonomy displays slug instead of name
--------------------------+-----------------------------
 Reporter:  snookerist    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.7.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello!

 Custom taxonomy registered for attachment displays as '''slug''' instead
 of '''name'''.

 It looks like this:
 [[Image(http://caseforyou.pro/two.png)]]

 It would be much better if it will looks like this:
 [[Image(http://caseforyou.pro/one.png)]]

 It is a only one thing to do. Replace string
 {{{#!php
 $values[] = $term->slug;
 }}}

 to
 {{{#!php
 $values[] = $term->name;
 }}}

 in file /wp-admin/includes/media.php at line number 1652.

 The code fragment:
 [[Image(http://caseforyou.pro/three.png)]]

 Could you do this change and inlclude in one of the followings releases?

 Thank you!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40638>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list