'taxonomy_template' Filter Name Clash
|Reported by:||CharlesClarkson||Owned by:|
Both get_the_taxonomies() and get_taxonomy_template() use a filter named 'taxonomy_template' for two different reasons.
In get_the_taxonomies() the filter holds a format for use with printf(), sprintf() and vprintf().
In get_taxonomy_template() the filter holds a template file name for use with include().
One of these template should probably be renamed. get_the_taxonomies() is the newer function (since 3.0.0).
Tested on WordPress 3.0.1.
I was able to avoid the clash by delaying the start of my filter function, but I'm not sure that will work in every case.
Change History (18)
- Keywords has-patch commit added; filters taxonomy_template taxonomy removed
- Milestone changed from Awaiting Review to 3.1