Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#27913 closed defect (bug) (duplicate)

$this->default_headers; is not set as an array

Reported by: grapplerulrich Owned by:
Priority: normal Milestone:
Component: Customize Version: 3.9
Severity: normal Keywords:
Cc: Focuses:

Description

I get this error in the customizer(wp-admin/customize.php)

Warning: Invalid argument supplied for foreach() in /wp-admin/custom-header.php on line 1248

Warning: array_merge(): Argument #2 is not an array in /wp-admin/custom-header.php on line 1268

I came across this bug in Responsive and was able to replicate it in TwentyTwelve with a minor code change.

This error arrises when a default image is set for add_theme_support( 'custom-header' );

Change 'default-image' => '', to 'default-image' => get_template_directory_uri() . '/inc/default-image.png', in /wp-content/themes/twentytwelve/inc/custom-header.php line 26 to replicate.

Attachments (1)

cods.bmp (347.5 KB ) - added by codsan.com 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 in reply to: ↑ description @grapplerulrich
12 years ago

This was introduced with #21785

#2 @ocean90
12 years ago

  • Component ThemesAppearance
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #27850.

#3 @rocketero
12 years ago

  • Resolution duplicate
  • Status closedreopened

I also saw those lines errors like Warning: Invalid argument supplied for foreach() in /wp-admin/custom-header.php on line 1248

there were several of them and they disappeared very quick and then it shows the responsive page.

Also I don't see where to edit those 3 widgets at the bottom of the page or the content with the monkey image.

#4 @SergeyBiryukov
12 years ago

  • Resolutionduplicate
  • Status reopenedclosed

It's still a duplicate of #27850.

@codsan.com
12 years ago

Note: See TracTickets for help on using tickets.