[wp-trac] [WordPress Trac] #33489: Widget without any settings

WordPress Trac noreply at wordpress.org
Fri Aug 21 19:05:40 UTC 2015


#33489: Widget without any settings
--------------------------+------------------------
 Reporter:  Technicaldev  |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Widgets       |     Version:  4.3
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by westonruter):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 @Technicaldev: Thanks for the report. This issue was actually reported
 elsewhere in #33442. The issue will be “fixed” in 4.3.1, however as you
 can read in the comments on the ticket, I would argue that the plugin is
 doing the wrong thing by returning `null` from the `WP_Widget::update()`
 method. WordPress is expecting this method to be returning an array, even
 an empty one. So for the immediate fix, I recommend updating the plugin to
 return an array instead of null. Thanks!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33489#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list