mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
IXR: Use a strict comparison to ensure that a non-numerically-indexed array is not incorrectly matched as a numeric array.
See #36586 git-svn-id: https://develop.svn.wordpress.org/trunk@37244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8b8b0909d4
commit
5d9cdca116
@ -168,7 +168,7 @@ class IXR_Value {
|
||||
{
|
||||
$expected = 0;
|
||||
foreach ($array as $key => $value) {
|
||||
if ((string)$key != (string)$expected) {
|
||||
if ((string)$key !== (string)$expected) {
|
||||
return true;
|
||||
}
|
||||
$expected++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user