Opened 13 years ago
Closed 11 years ago
#21200 closed defect (bug) (fixed)
get_all_category_ids() only used by a deprecated function
Reported by: | Latz | Owned by: | |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | minor | Version: | 3.4.1 |
Component: | Taxonomy | Keywords: | has-patch easy-fix |
Focuses: | Cc: |
Description
The function "get_all_category_ids()" (category.php) is only used by the deprecated function "get_category_children". I got two ideas for the future of the function:
a) also deprecate it
b) create a function "get_all_taxonomy_ids($taxonomy)". Since it seems to be a common problem for programmers to get e.g. all tag ids I would prefer this.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
The actual querying of the ids is done via get_terms() anyway:
The only benefit of get_all_category_ids() is that it caches the ids. However, that cache doesn't seem to be invalidated anywhere, so it's buggy.
Therefore, I say we deprecate it.