Make WordPress Core

Changeset 33721 for branches/4.3


Ignore:
Timestamp:
08/24/2015 07:30:37 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.

Merges [33696] to the 4.3 branch.
See #32474.
Fixes #33442 for the 4.3 branch.

File:
1 edited

Legend:

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

    r32990 r33721  
    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.