Remove only the background image, not all theme mods, when resetting the background to the default. Props ocean90. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@14578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c982678a0b
commit
82082002fb
|
@ -88,7 +88,7 @@ class Custom_Background {
|
|||
check_admin_referer('custom-background');
|
||||
|
||||
if ( isset($_POST['reset-background']) ) {
|
||||
remove_theme_mods();
|
||||
remove_theme_mod( 'background_image' );
|
||||
return;
|
||||
}
|
||||
if ( isset($_POST['remove-background']) ) {
|
||||
|
|
Loading…
Reference in New Issue