#48176 closed defect (bug) (fixed)
Deprecated get_all_category_ids() call can return incorrect results
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.4 | Priority: | low |
Severity: | minor | Version: | 4.0 |
Component: | Taxonomy | Keywords: | 2nd-opinion has-patch |
Focuses: | Cc: |
Description
In WordPress 4.0.0 and r28679, the get_all_category_ids()
function was formally deprecated.
Internally, it continues to rely on a cache key (all_category_ids
) that will never be repopulated.
This means anyone still using this deprecated function (yikes, I know...) on an installation with a persistent object cache is highly likely to be retrieving invalid/unexpected results.
Attachments (1)
Change History (6)
#3
@
4 years ago
- Milestone changed from Awaiting Review to 5.4
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
Note: See
TracTickets for help on using
tickets.
Recommend to simply remove caching from this deprecated function completely.
At this point, anyone still using it is not likely doing so for the performance benefit, and
get_terms
combined withWP_Term_Query
now provides caching by default.