Opened 10 years ago
Closed 10 years ago
#27913 closed defect (bug) (duplicate)
$this->default_headers; is not set as an array
Reported by: | grapplerulrich | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.9 |
Component: | Customize | Keywords: | |
Focuses: | Cc: |
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)
Change History (5)
#1
in reply to:
↑ description
@
10 years ago
#2
@
10 years ago
- Component changed from Themes to Appearance
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Duplicate of #27850.
#3
@
10 years ago
- Resolution duplicate deleted
- Status changed from closed to reopened
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.
This was introduced with #21785