Changeset 18323 for trunk/wp-includes/formatting.php
- Timestamp:
- 06/20/2011 02:58:50 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r18159 r18323 2522 2522 break; 2523 2523 2524 case 'timezone_string': 2525 $allowed_zones = timezone_identifiers_list(); 2526 if ( ! in_array( $value, $allowed_zones ) && ! empty( $value ) ) { 2527 $value = get_option( $option ); // Resets option to stored value in the case of failed sanitization 2528 if ( function_exists('add_settings_error') ) 2529 add_settings_error('timezone_string', 'invalid_timezone_string', __('The timezone you have entered is not valid. Please select a valid timezone.') ); 2530 } 2531 break; 2532 2524 2533 default : 2525 2534 $value = apply_filters("sanitize_option_{$option}", $value, $option);
Note: See TracChangeset
for help on using the changeset viewer.