Making WordPress.org

Changeset 6996


Ignore:
Timestamp:
03/31/2018 01:46:19 AM (8 years ago)
Author:
iandunn
Message:

WP15: Unset referenced $event after loop to avoid duplicates.

After looping through an array by reference, the final value remains a reference unless it's unset. If you then reuse that variable in a future loop, it results in one of the items being overwritten by another. In this case, that meant that the Arnhem event was displayed twice, but the New Delhi was skipped.

File:
1 edited

Legend:

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