Make WordPress Core

Opened 5 months ago

Closed 5 months ago

Last modified 3 months ago

#63579 closed defect (bug) (duplicate)

Error Handling in wp-includes/widgets.php

Reported by: samchameleon's profile samchameleon 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)

#1 @rollybueno
5 months ago

  • Keywords 2nd-opinion added

#2 @SirLouen
5 months ago

  • Keywords 2nd-opinion removed
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #57469.

Yes, its a duplicate.

#3 @desrosj
3 months ago

  • Milestone Awaiting Review deleted
  • Version changed from 6.8 to 4.9
Note: See TracTickets for help on using tickets.