[wp-trac] [WordPress Trac] #55121: classic widgets with no settings won't show up in 5.9
WordPress Trac
noreply at wordpress.org
Wed Feb 9 17:56:53 UTC 2022
#55121: classic widgets with no settings won't show up in 5.9
---------------------------------------------+---------------------
Reporter: joncampbell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9.1
Component: Widgets | Version: 5.9
Severity: normal | Resolution:
Keywords: has-patch php8 needs-unit-tests | Focuses:
---------------------------------------------+---------------------
Comment (by joncampbell):
@costdev
I totally get it now.
The person who developed the widget that stopped working in 5.9 had an
update() method that was empty and returned nothing.
I removed that from the custom widget class and now when the widget saves
it stores an empty array so that the widget loading on the front end has
an empty array of settings instead of null.
Feel free to get rid of this fix if the only way people would have a null
settings is if they did it wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55121#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list