WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#34652 closed defect (bug) (invalid)

New widget-functions.php retreive_widgets throws error with preview of newly created theme

Reported by: lilaeamedia Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Widgets Keywords:
Focuses: Cc:

Description

Using theme_mod sidebars_widgets as array before being initialized (in preview)? See error below:

Warning: Invalid argument supplied for foreach() in /home/lilaeaco/public_html/test/web/wp-includes/widget-functions.php on line 1032

Warning: Invalid argument supplied for foreach() in /home/lilaeaco/public_html/test/web/wp-includes/widget-functions.php on line 1082

Change History (4)

#1 @westonruter
6 years ago

Is this happening in the Customizer preview?

#2 @lilaeamedia
6 years ago

Yes, but I think it is related to the way I am duplicating theme mods in a plugin. Let me test some more before spending any time on this.

#3 @lilaeamedia
6 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Problem on my end, not WP.

#4 @swissspidy
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution changed from worksforme to invalid
Note: See TracTickets for help on using tickets.