WordPress.org

Make WordPress Core

Changeset 48401


Ignore:
Timestamp:
07/07/2020 08:36:41 PM (3 months ago)
Author:
desrosj
Message:

Administration: Fix failing tests as a result of [48397].

Because of changes to how PHP handles arrays used in foreach() loops in PHP >= 7.0, [48397] resulted in a failing test for PHP 5.6.

This calls reset() after using the $results array in the foreach() to ensure the array is treated the same and as expected.

Props azaozz, desrosj, SergeyBiryukov, xknown.
See #50448.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.