mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55549 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -156,7 +156,7 @@ class WP_Object_Cache {
|
||||
$message = is_string( $key )
|
||||
? __( 'Cache key must not be an empty string.' )
|
||||
/* translators: %s: The type of the given cache key. */
|
||||
: sprintf( __( 'Cache key must be integer or non-empty string, %s given.' ), $type );
|
||||
: sprintf( __( 'Cache key must be an integer or a non-empty string, %s given.' ), $type );
|
||||
|
||||
_doing_it_wrong(
|
||||
sprintf( '%s::%s', __CLASS__, debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 2 )[1]['function'] ),
|
||||
|
||||
Reference in New Issue
Block a user