[wp-trac] [WordPress Trac] #27913: $this->default_headers; is not set as an array

WordPress Trac noreply at wordpress.org
Sat Apr 19 11:25:50 UTC 2014

#27913: $this->default_headers; is not set as an array
 Reporter:  grapplerulrich  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Themes          |    Version:  3.9
 Severity:  normal          |   Keywords:
  Focuses:                  |
 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 [http://wordpress.org/extend/themes/responsive
 Responsive] and was able to replicate it in TwentyTwelve with a minor code

 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.

Ticket URL: <https://core.trac.wordpress.org/ticket/27913>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list