[wp-trac] [WordPress Trac] #57593: Warn about calling `_get_non_cached_ids()` with invalid ids

WordPress Trac noreply at wordpress.org
Tue Mar 14 15:51:42 UTC 2023


#57593: Warn about calling `_get_non_cached_ids()` with invalid ids
-------------------------------------------------+-------------------------
 Reporter:  tillkruess                           |       Owner:
                                                 |  spacedmonkey
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  Cache API                            |     Version:  5.5
 Severity:  major                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests has-dev-    |     Focuses:
  note commit early                              |
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

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


Comment:

 In [changeset:"55543" 55543]:
 {{{
 #!CommitTicketReference repository="" revision="55543"
 Cache API: Add a warning when calling `_get_non_cached_ids` with invalid
 ids.

 Sanitize the array of ids passed to the `_get_non_cached_ids` function and
 add a `_doing_it_wrong` call, if an invalid type is passed.

 Props tillkruess, spacedmonkey, peterwilsoncc, flixos90, SergeyBiryukov.
 Fixes #57593.
 }}}

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


More information about the wp-trac mailing list