WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/17/2010 05:50:42 PM (12 years ago)
Author:
ryan
Message:

Option validation error reporting. Props jeremyclarke. see #11474

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r13108 r13177  
    23812381    switch ($option) {
    23822382        case 'admin_email':
    2383             $value = sanitize_email($value);
     2383            if ( !$value = sanitize_email($value) && function_exists('add_settings_error') )
     2384                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'));
     2385
    23842386            break;
    23852387
Note: See TracChangeset for help on using the changeset viewer.