[wp-trac] [WordPress Trac] #21200: get_all_category_ids() only used by a deprecated function
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 9 12:06:39 UTC 2012
#21200: get_all_category_ids() only used by a deprecated function
--------------------------+------------------------------
Reporter: Latz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.4.1
Severity: minor | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Changes (by scribu):
* keywords: => needs-patch
Comment:
The actual querying of the ids is done via get_terms() anyway:
{{{
$cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all')
);
}}}
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21200#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list