Changeset 18356 for branches/3.1/wp-includes/formatting.php
- Timestamp:
- 06/27/2011 09:36:48 PM (14 years ago)
- Location:
- branches/3.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
wp-includes/formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1
-
branches/3.1/wp-includes/formatting.php
r18353 r18356 2441 2441 } 2442 2442 break; 2443 2443 case 'new_admin_email': 2444 $value = sanitize_email($value); 2445 if ( !is_email($value) ) { 2446 $value = get_option( $option ); // Resets option to stored value in the case of failed sanitization 2447 if ( function_exists('add_settings_error') ) 2448 add_settings_error('new_admin_email', 'invalid_admin_email', __('The email address entered did not appear to be a valid email address. Please enter a valid email address.')); 2449 } 2450 break; 2444 2451 case 'thumbnail_size_w': 2445 2452 case 'thumbnail_size_h': … … 2535 2542 } 2536 2543 break; 2544 case 'WPLANG': 2545 $allowed = get_available_languages(); 2546 if ( ! in_array( $value, $allowed ) && ! empty( $value ) ) 2547 $value = get_option( $option ); 2548 break; 2537 2549 2538 2550 default :
Note: See TracChangeset
for help on using the changeset viewer.