mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 20:58:55 +00:00
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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user