Make WordPress Core

Opened 10 years ago

Last modified 7 years ago

#40638 new defect (bug)

In attachments taxonomy displays slug instead of name

Reported by: snookerist Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version: 4.7.4
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Hello!

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

It looks like this:
http://caseforyou.pro/two.png

It would be much better if it will looks like this:
http://caseforyou.pro/one.png

It is a only one thing to do. Replace string

$values[] = $term->slug;

to

$values[] = $term->name;

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

The code fragment:
http://caseforyou.pro/three.png

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

Thank you!

Attachments (1)

40638.diff​ (620 bytes ) - added by Presskopp 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @snookerist
10 years ago

  • Component Taxonomy → Media

#2 @Presskopp
10 years ago

If we do so, we should probably patch the second appearance too.

#3 @Presskopp
7 years ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.