[wp-trac] [WordPress Trac] #10017: Custom taxonomy edit page doesnt change "Tag" titles
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 8 05:40:26 UTC 2009
#10017: Custom taxonomy edit page doesnt change "Tag" titles
-------------------------+--------------------------------------------------
Reporter: dd32 | Owner: filosofo
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 2.8
Severity: normal | Keywords: needs-patch
-------------------------+--------------------------------------------------
Changes (by nmac):
* cc: nmac (added)
Comment:
I've been working with custom content types and found the ability to add
new taxonomies really really useful. The downside is that while I can call
edit-tags.php?taxonomy=mytaxonomyname the labels on this admin page all
refer to tags - as noted above.
I made some minor mods to edit-tags.php to make the page more generic to
taxonomies - purely cosmetic.
For example: remove $title = __('Tags'); line 12, and add these two lines
at line 20
$taxonomy_object = get_taxonomy( $taxonomy );
$title = $taxonomy_object->label;
Elsewhere for labels and headings, remove the word tag, so Add New Tag
becomes Add New.
Works for me, although I would love to see this in the core. Plurals of
course would be nice, but generic statements work as the page has a bit
title TAXONOMY NAME.
Great work guys.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10017#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list