mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-22 00:32:47 +00:00
`sanitize_key()` expects a string type for the given `key`. Passing any other data type to `strtolower()` can result in `E_WARNING: strtolower() expects parameter 1 to be string, array given`. A check is added that if the key is not a string, the key is set to an empty string. For performance, the additional string processing is skipped if the key is an empty string. This change maintains backwards-compatibility for valid string keys while fixing the bug of non-string keys. Props costdev, dd32. Fixes #54160. git-svn-id: https://develop.svn.wordpress.org/trunk@52292 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| e2e | ||
| gutenberg | ||
| phpunit | ||
| qunit | ||
| visual-regression | ||