[wp-trac] [WordPress Trac] #48176: Deprecated get_all_category_ids() call can return incorrect results

WordPress Trac noreply at wordpress.org
Mon Dec 2 14:47:39 UTC 2019


#48176: Deprecated get_all_category_ids() call can return incorrect results
-----------------------------------+-----------------------------
 Reporter:  johnjamesjacoby        |       Owner:  SergeyBiryukov
     Type:  defect (bug)           |      Status:  closed
 Priority:  low                    |   Milestone:  5.4
Component:  Taxonomy               |     Version:  4.0
 Severity:  minor                  |  Resolution:  fixed
 Keywords:  2nd-opinion has-patch  |     Focuses:
-----------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46810" 46810]:
 {{{
 #!CommitTicketReference repository="" revision="46810"
 Taxonomy: Remove redundant caching from `get_all_category_ids()`,
 deprecated in favor of `get_terms()` in [28679].

 The `all_category_ids` cache key it relied on was removed in [5555] and
 never repopulated, causing invalid or unexpected results when using a
 persistent object cache.

 Props itowhid06, johnjamesjacoby.
 Fixes #48176.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48176#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list