[wp-trac] [WordPress Trac] #20249: Remove custom header and background constants
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 20 22:41:44 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 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20249#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list