Make WordPress Core

Opened 15 months ago

Closed 15 months ago

Last modified 13 months ago

#63579 closed defect (bug) (duplicate)

Error Handling in wp-includes/widgets.php

Reported by: samchameleon Owned by:
Priority: normal Milestone:
Component: Widgets Version: 4.9
Severity: normal Keywords:
Cc: Focuses:

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
15 months ago

  • Keywords 2nd-opinion added

#2 @SirLouen
15 months ago

  • Keywords 2nd-opinion removed
  • Resolutionduplicate
  • Status newclosed

Duplicate of #57469.

Yes, its a duplicate.

#3 @desrosj
13 months ago

  • Milestone Awaiting Review
  • Version 6.84.9
Note: See TracTickets for help on using tickets.