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:
Dion Hulse 2016-04-19 06:13:29 +00:00
parent c8fe7cc538
commit 0be2153bfb
2 changed files with 2 additions and 2 deletions

View File

@ -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++;

View File

@ -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.