Remove only the background image, not all theme mods, when resetting the background to the default. Props ocean90. see #12186
git-svn-id: https://develop.svn.wordpress.org/trunk@14578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d43d37baa9
commit
6ecfb58997
|
@ -88,7 +88,7 @@ class Custom_Background {
|
||||||
check_admin_referer('custom-background');
|
check_admin_referer('custom-background');
|
||||||
|
|
||||||
if ( isset($_POST['reset-background']) ) {
|
if ( isset($_POST['reset-background']) ) {
|
||||||
remove_theme_mods();
|
remove_theme_mod( 'background_image' );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( isset($_POST['remove-background']) ) {
|
if ( isset($_POST['remove-background']) ) {
|
||||||
|
|
Loading…
Reference in New Issue