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:
Ryan Boren 2010-05-12 16:18:25 +00:00
parent d43d37baa9
commit 6ecfb58997
1 changed files with 1 additions and 1 deletions

View File

@ -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']) ) {