Tests: Add more test cases for WP_Object_Cache::is_valid_key().

A valid cache key for `wp_cache_*()` functions must be either an integer number or a non-empty string. To avoid potential compatibility issues or key collisions, a string that becomes empty after `trim()` should not be considered a valid cache key.

Follow-up to [53818], [53821], [53822].

Props tillkruess.
See #56198.
Built from https://develop.svn.wordpress.org/trunk@53834


git-svn-id: http://core.svn.wordpress.org/trunk@53393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-08-04 17:33:08 +00:00
parent e2024bd466
commit 962607928e

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-alpha-53833';
$wp_version = '6.1-alpha-53834';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.