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:
parent
d6e2ef4dbf
commit
4ef2ae30fd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue