[wp-trac] [WordPress Trac] #30683: Customizer Background does not restore default image
WordPress Trac
noreply at wordpress.org
Fri Dec 12 00:13:33 UTC 2014
#30683: Customizer Background does not restore default image
--------------------------+-----------------------------
Reporter: dreamwhisper | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Related #21483
In 4.1RC, it appears you are not able to reselect a default image after
uploading an alternate image.
{{{
#!php
//* Add support for custom background
add_theme_support( 'custom-background', array(
'default-image' => get_stylesheet_directory_uri() .
'/images/bg.png',
'default-color' => 'eee',
) );
}}}
Steps to replicate:
* Set a default image in the custom-background function as above
* In the customizer, click '''Change Image''' to select a different image
* Click '''Default Image''' to restore the original default image
The default image is restored as the thumbnail, but is not displayed as
the background on the front end.
In addition, previously, you had the options to:
* Upload an alternate image
* Restore the default image
* Remove the image altogether
All of these options are desirable when specifying a default.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30683>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list