From 5d9cdca116ebd2ccbe7ce8e934c1687b9cc135a7 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 19 Apr 2016 06:12:42 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-IXR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-IXR.php b/src/wp-includes/class-IXR.php index 2fee046d41..8347c1beaf 100644 --- a/src/wp-includes/class-IXR.php +++ b/src/wp-includes/class-IXR.php @@ -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++;