WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#40638 new defect (bug)

In attachments taxonomy displays slug instead of name

Reported by: snookerist Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.4
Component: Media Keywords:
Focuses: Cc:
PR Number:

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 2 years ago.

Download all attachments as: .zip

Change History (3)

#1 @snookerist
2 years ago

  • Component changed from Taxonomy to Media

@Presskopp
2 years ago

#2 @Presskopp
2 years ago

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

Note: See TracTickets for help on using tickets.