[wp-trac] [WordPress Trac] #18041: Custom background preview doesn't show default background
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 8 18:32:54 UTC 2011
#18041: Custom background preview doesn't show default background
--------------------------+-----------------------------
Reporter: billerickson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2
Severity: normal | Keywords:
--------------------------+-----------------------------
To replicate, in the Twenty Eleven theme I added this right after
add_custom_background();
{{{
define( 'BACKGROUND_IMAGE',
'http://s.wordpress.org/style/images/wp3-logo.png' );
}}}
Viewing the site now shows the WordPress logo tiled across the background.
If you go to Appearance > Background, the Preview doesn't display the
background image. If you upload another image, then click the "Restore
Original Image" button, the preview stays empty but the actual background
of the site displays the default image.
I've tried it with an absolute URL like above, absolute URL to image in
the current WP install, and using get_bloginfo('url') or
get_bloginfo('stylesheet_directory') to generate the proper URL.
When you View > Source of the admin page, this is what's showing up in the
preview box:
{{{
<div id="custom-background-image" style=" background-image: url('');
background-repeat: repeat; background-position: top left"><img class
="custom-background-image" src="" style="visibility:hidden;" alt="" /><br
/>
<img class="custom-background-image" src="" style="visibility:hidden;"
alt="" />
</div>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18041>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list