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:
ryan 2010-05-12 16:18:25 +00:00
parent c982678a0b
commit 82082002fb
1 changed files with 1 additions and 1 deletions

View File

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