#63579 closed defect (bug) (duplicate)
Error Handling in wp-includes/widgets.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.9 |
| Component: | Widgets | Keywords: | |
| Focuses: | Cc: |
Description
When I tried to access Appearance -> widgets I encountered a critical error, the error was because when trying to merge arrays, there must have been a null value being passed to the merge array function.
$shown_widgets = array_merge( ...array_values( $sidebars_widgets ) );
So that I could temporarily access the page, I changed it to this:
$shown_widgets = array_merge( ...array_filter( array_values( $sidebars_widgets ), 'is_array' ) );
So that I could see if there was a broken widget.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Looks like a duplicate of https://core.trac.wordpress.org/ticket/57469