[wp-trac] [WordPress Trac] #63579: Error Handling in wp-includes/widgets.php
WordPress Trac
noreply at wordpress.org
Tue Jun 17 08:25:31 UTC 2025
#63579: Error Handling in wp-includes/widgets.php
--------------------------+-----------------------------
Reporter: samchameleon | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 6.8
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63579>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list