scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 4.3.1
[autoinstalls/wordpress.git]
/
wp-includes
/
widgets.php
diff --git
a/wp-includes/widgets.php
b/wp-includes/widgets.php
index 40de6c84a15f82fd747d4ff222d5504462a916ad..28daba1a62fcc5982ac6ba5c0f3c306972d565ae 100644
(file)
--- a/
wp-includes/widgets.php
+++ b/
wp-includes/widgets.php
@@
-316,7
+316,7
@@
class WP_Widget {
$this->_set( $widget_args['number'] );
$instances = $this->get_settings();
$this->_set( $widget_args['number'] );
$instances = $this->get_settings();
- if (
isset( $instances[ $this->number ]
) ) {
+ if (
array_key_exists( $this->number, $instances
) ) {
$instance = $instances[ $this->number ];
/**
$instance = $instances[ $this->number ];
/**