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

WordPress Trac noreply at wordpress.org
Tue Mar 14 16:53:22 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                              |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"55549" 55549]:
 {{{
 #!CommitTicketReference repository="" revision="55549"
 Docs: Fix typo in `_validate_cache_id()` description.

 Includes:
 * Capitalizing "ID" in a consistent way.
 * Expanding the comment on not using `filter_var()`.
 * Adding a `@covers` tag for the function in unit tests.
 * Minor tweak to the `_doing_it_wrong()` message.

 Follow-up to [53818], [55543].

 See #57593.
 }}}

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


More information about the wp-trac mailing list