[wp-trac] [WordPress Trac] #48176: Deprecated get_all_category_ids() call can return incorrect results
WordPress Trac
noreply at wordpress.org
Mon Sep 30 06:50:58 UTC 2019
#48176: Deprecated get_all_category_ids() call can return incorrect results
-----------------------------+-----------------------------
Reporter: johnjamesjacoby | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.0
Severity: minor | Keywords: 2nd-opinion
Focuses: |
-----------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48176>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list