Changeset 54229
- Timestamp:
- 09/19/2022 11:46:26 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r53776 r54229 4924 4924 4925 4925 case 'timezone_string': 4926 $allowed_zones = timezone_identifiers_list( );4926 $allowed_zones = timezone_identifiers_list( DateTimeZone::ALL_WITH_BC ); 4927 4927 if ( ! in_array( $value, $allowed_zones, true ) && ! empty( $value ) ) { 4928 4928 $error = __( 'The timezone you have entered is not valid. Please select a valid timezone.' ); -
trunk/tests/phpunit/tests/option/sanitizeOption.php
r53865 r54229 70 70 array( 'timezone_string', 'Europe/London', 'Europe/London' ), 71 71 array( 'timezone_string', get_option( 'timezone_string' ), 'invalid' ), 72 // @ticket 56468 73 'deprecated timezone string is accepted as valid' => array( 74 'option_name' => 'timezone_string', 75 'sanitized' => 'America/Buenos_Aires', 76 'original' => 'America/Buenos_Aires', 77 ), 72 78 array( 'permalink_structure', '', '' ), 73 79 array( 'permalink_structure', '/%year%/%20%postname%', '/%year%/ %postname%' ),
Note: See TracChangeset
for help on using the changeset viewer.