WordPress.org

Make WordPress Core

Changeset 37244


Ignore:
Timestamp:
04/19/2016 06:12:42 AM (4 years ago)
Author:
dd32
Message:

IXR: Use a strict comparison to ensure that a non-numerically-indexed array is not incorrectly matched as a numeric array.

See #36586

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-IXR.php

    r36132 r37244  
    169169        $expected = 0;
    170170        foreach ($array as $key => $value) {
    171             if ((string)$key != (string)$expected) {
     171            if ((string)$key !== (string)$expected) {
    172172                return true;
    173173            }
Note: See TracChangeset for help on using the changeset viewer.