Show updated message after resetting or removing the background image. see #12186.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-16 05:38:14 +00:00
parent d6e2ef4dbf
commit 4ef2ae30fd
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class Custom_Background {
check_admin_referer('custom-background-reset', '_wpnonce-custom-background-reset');
remove_theme_mod('background_image');
remove_theme_mod('background_image_thumb');
$this->updated = true;
return;
}
@ -97,6 +98,7 @@ class Custom_Background {
check_admin_referer('custom-background-remove', '_wpnonce-custom-background-remove');
set_theme_mod('background_image', '');
set_theme_mod('background_image_thumb', '');
$this->updated = true;
return;
}