mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 08:37:55 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@33696 git-svn-id: http://core.svn.wordpress.org/trunk@33663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db32f96d8a
commit
cb2879b9d4
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-33695';
|
$wp_version = '4.4-alpha-33696';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -316,7 +316,7 @@ class WP_Widget {
|
|||||||
$this->_set( $widget_args['number'] );
|
$this->_set( $widget_args['number'] );
|
||||||
$instances = $this->get_settings();
|
$instances = $this->get_settings();
|
||||||
|
|
||||||
if ( isset( $instances[ $this->number ] ) ) {
|
if ( array_key_exists( $this->number, $instances ) ) {
|
||||||
$instance = $instances[ $this->number ];
|
$instance = $instances[ $this->number ];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user