IXR: Use a strict comparison to ensure that a non-numerically-indexed array is not incorrectly matched as a numeric array.
See #36586 Built from https://develop.svn.wordpress.org/trunk@37244 git-svn-id: http://core.svn.wordpress.org/trunk@37210 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user