Opened 17 years ago
Closed 13 years ago
#8722 closed defect (bug) (fixed)
get_categories allows custom taxos, get_category doesn't
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.7 | Priority: | normal |
| Severity: | normal | Version: | 2.7 |
| Component: | Taxonomy | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
get_categories('type=link') works with custom taxonomies (since http://trac.wordpress.org/ticket/7427 ).
get_category('... ?') doesn't.
get_category > get_term($category,'category');
Because of that, all category dependent functions, like wp_list_categories and such, are broken when working with non post categories. get_category doesn't even work with link categories.
Attachments (3)
Change History (11)
#2
@
16 years ago
- Cc wojtek.szkutnik@… added
- Keywords has-patch needs-testing added; custom-taxonomies removed
#4
@
13 years ago
- Keywords needs-testing gsoc removed
- Milestone changed from Future Release to 3.7
This is harmless, but might not be necessary. Let us discuss.
#6
@
13 years ago
It might make more sense to convert all uses of get_category() to get_term(), in functions like wp_list_categories() that are generic and take a taxonomy argument. Otherwise this change doesn't actually help, unless you use the filter, which is very confusing.
Note: See
TracTickets for help on using
tickets.
Hm, shouldn't all these functions use wp_get_args instead of separate arguments?