Opened 8 years ago
Closed 8 years ago
#36950 closed enhancement (duplicate)
Get term by should use get_terms internally
Reported by: | spacedmonkey | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.3 |
Component: | Taxonomy | Keywords: | |
Focuses: | performance | Cc: |
Description
Now that WP_Term_Query has been merged, it makes sense to converge to use it in all internal functions to query the terms table. Using WP_Term_Query / get_terms will also add caching to a functions that do not currently have it.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Duplicate of #21760.
Previously: #13170.
I raised this proposal in https://core.trac.wordpress.org/ticket/21760#comment:87. Let's move the discussion there.