From 0be2153bfbc2d64674a3f967f5861f9fdc52be74 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 19 Apr 2016 06:13:29 +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 Built from https://develop.svn.wordpress.org/trunk@37244 git-svn-id: http://core.svn.wordpress.org/trunk@37210 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-IXR.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index 2fee046d41..8347c1beaf 100644 --- a/wp-includes/class-IXR.php +++ b/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++; diff --git a/wp-includes/version.php b/wp-includes/version.php index 86ef8d43bd..4c0f17020e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37243'; +$wp_version = '4.6-alpha-37244'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.