Make WordPress Core

Changeset 33696


Ignore:
Timestamp:
08/21/2015 06:08:53 PM (9 years ago)
Author:
westonruter
Message:

Widgets: Switch back to using array_key_exists() instead of isset() for widget instance existence check.

Reverts unnecessary change in [32602] since array_key_exists() does actually work with ArrayIterator objects.

See #32474.
Fixes #33442.

File:
1 edited

Legend:

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

    r32990 r33696  
    317317        $instances = $this->get_settings();
    318318
    319         if ( isset( $instances[ $this->number ] ) ) {
     319        if ( array_key_exists( $this->number, $instances ) ) {
    320320            $instance = $instances[ $this->number ];
    321321
Note: See TracChangeset for help on using the changeset viewer.