Changeset 54233 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/20/2022 01:00:24 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r54226 r54233 6382 6382 } 6383 6383 6384 $zonen = array(); 6385 foreach ( timezone_identifiers_list() as $zone ) { 6384 $tz_identifiers = timezone_identifiers_list(); 6385 $zonen = array(); 6386 6387 foreach ( $tz_identifiers as $zone ) { 6386 6388 $zone = explode( '/', $zone ); 6387 6389 if ( ! in_array( $zone[0], $continents, true ) ) { … … 6416 6418 if ( empty( $selected_zone ) ) { 6417 6419 $structure[] = '<option selected="selected" value="">' . __( 'Select a city' ) . '</option>'; 6420 } 6421 6422 // If this is a deprecated, but valid, timezone string, display it at the top of the list as-is. 6423 if ( in_array( $selected_zone, $tz_identifiers, true ) === false 6424 && in_array( $selected_zone, timezone_identifiers_list( DateTimeZone::ALL_WITH_BC ), true ) 6425 ) { 6426 $structure[] = '<option selected="selected" value="' . esc_attr( $selected_zone ) . '">' . esc_html( $selected_zone ) . '</option>'; 6418 6427 } 6419 6428
Note: See TracChangeset
for help on using the changeset viewer.