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;
|
$expected = 0;
|
||||||
foreach ($array as $key => $value) {
|
foreach ($array as $key => $value) {
|
||||||
if ((string)$key != (string)$expected) {
|
if ((string)$key !== (string)$expected) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$expected++;
|
$expected++;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|||||||
Reference in New Issue
Block a user