From 82082002fba964898ea8ea1dadf5ee697b471e14 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@14578 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 6cb7233bc..ad99c4a1c 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']) ) {