[wp-trac] [WordPress Trac] #33489: Widget without any settings
WordPress Trac
noreply at wordpress.org
Fri Aug 21 15:51:30 UTC 2015
#33489: Widget without any settings
--------------------------+-----------------------------
Reporter: Technicaldev | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello,
Since Wordpress version 4.3 there has been a code change which has
disabled my plugin for all users that have upgraded (with no error message
etc).
Upon investigation, it appears a code change has been made within the file
'wp-includes/widgets.php' on line 317. "array_key_exists" has been
replaced with "isset". This requires that the value is not NULL. As my
widget has no settings (no title etc), the "$instances[ $this->number ]"
value is NULL and this has therefore resulted in my widget no longer
displaying.
Could you please advise whether this is a bug or whether we are going to
have to change the plugin to store an empty array etc.
Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33489>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list