[wp-trac] [WordPress Trac] #20734: Registered Background image does not display in preview.
WordPress Trac
wp-trac at lists.automattic.com
Wed May 23 10:16:10 UTC 2012
#20734: Registered Background image does not display in preview.
--------------------------+------------------------------------
Reporter: mfields | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Appearance | Version: 3.4
Severity: normal | Keywords: has-patch dev-feedback
--------------------------+------------------------------------
I'm using code similar to the following to register custom background
support on the latest version of trunk with a clean database:
{{{
function mytheme_register_custom_background_support() {
add_theme_support( 'custom-background', array(
'default-color' => 'f6f4f2',
'default-image' => get_template_directory_uri() .
'/images/background.png',
) );
}
add_action( 'after_setup_theme',
'mytheme_register_custom_background_support' );
}}}
When I navigate to Appearance -> Background, I only see the background
color in the "Preview" box. I would assume that the image should be shown
here as well if a url is supplied as {{{default-image}}} in the
{{{add_theme_support()}}} call.
I'll uploaded a patch which works for me, but may not be the best
solution.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20734>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list