From 6ecfb58997eb1cc4d2f205e71670edbee322651b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 12 May 2010 16:18:25 +0000 Subject: [PATCH] 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 --- wp-admin/custom-background.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php index 6cb7233bc3..ad99c4a1cb 100644 --- a/wp-admin/custom-background.php +++ b/wp-admin/custom-background.php @@ -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']) ) {