[wp-trac] [WordPress Trac] #41541: New HTML and Text widgets not saving content
WordPress Trac
noreply at wordpress.org
Thu Aug 3 03:11:42 UTC 2017
#41541: New HTML and Text widgets not saving content
----------------------------+-----------------------------
Reporter: galbaras | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.8.1
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
Existing text widgets can be adjusted, but new text and Custom HTML
widgets are not saved, just cleared.
error_log shows the following PHP warnings, which are likely related:
[03-Aug-2017 02:25:31 UTC] PHP Warning: array_merge(): Argument #2 is not
an array in /home/ronitbaras/public_html/wp-includes/default-widgets.php
on line 117
[03-Aug-2017 02:25:31 UTC] PHP Warning: array_merge(): Argument #1 is not
an array in /home/ronitbaras/public_html/wp-includes/default-widgets.php
on line 124
The respective code was added in 4.8.1, which makes this even more likely
to be the cause.
I've tested with and without setting the title. I've also tested restoring
a deleted text widget, and it works OK, so this is probably related to how
4.8.1 creates new widget instances.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41541>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list