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

git-svn-id: https://develop.svn.wordpress.org/trunk@14685 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-16 05:38:14 +00:00
parent ae5af53f10
commit d7e1bbb65b

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;
}