[wp-trac] [WordPress Trac] #21165: Make categories widget work with custom taxonomies
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 5 18:16:30 UTC 2012
#21165: Make categories widget work with custom taxonomies
-------------------------+------------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by scribu):
Hey fonglh, thanks for the patch. There are two issues with it, though:
1. The `$tax->show_tagcloud` check is not appropriate. I think we could
use `$tax->is_hierarchical` instead.
2. Some translations need to change the order of the words, so appending
strings doesn't work well for them:
{{{
__('Select ') . get_taxonomy( $current_taxonomy )->labels->singular_name;
}}}
I guess we'll have to introduce a new 'select' label to
register_taxonomy(), so that we can do this:
{{{
get_taxonomy( $current_taxonomy )->labels->select;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21165#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list