add_settings_error fixes. Props jeremyclarke. fixes #11474

git-svn-id: https://develop.svn.wordpress.org/trunk@13197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-02-18 19:43:44 +00:00
parent 2bf79cc5e8
commit 15f2f0bda1
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -2380,9 +2380,9 @@ function sanitize_option($option, $value) {
switch ($option) {
case 'admin_email':
if ( !$value = sanitize_email($value) && function_exists('add_settings_error') )
$value = sanitize_email($value);
if ( !$value && function_exists('add_settings_error') )
add_settings_error('admin_email', 'invalid_admin_email', __('The E-Mail Address submitted was not in the right format. Please enter a valid Email Address'));
break;
case 'thumbnail_size_w':