[wp-trac] [WordPress Trac] #20249: Remove custom header and background constants

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 20 22:49:39 UTC 2012


#20249: Remove custom header and background constants
--------------------------+------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 Replying to [comment:22 Jayjdk]:
 > I can't get my default background image to show.
 >
 > Code used:
 > {{{
 > add_theme_support( 'custom-background', 'default-color' => 'e3ecf2',
 'default-image' => '%s/images/bg.png' ) );
 > }}}
 >
 > By changing line 204 in wp-admin/custom-background.php from
 > {{{
 > $background_styles .= ' background-image: url(\'' .
 get_theme_mod('background_image_thumb', '') . '\');'
 > }}}
 >
 > to
 > {{{
 > $background_styles .= ' background-image: url(\'' .
 get_background_image() . '\');'
 > }}}
 >
 > it will show. I don't know if it's the best solution but it works.

 Did this work with constants under 3.3? Doesn't look like it would.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20249#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list