Changeset 47122 for trunk/src/wp-admin/options-general.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/options-general.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-general.php
r47088 r47122 210 210 } 211 211 212 if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists 212 if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists. 213 213 $check_zone_info = false; 214 214 if ( 0 == $current_offset ) { … … 322 322 foreach ( $date_formats as $format ) { 323 323 echo "\t<label><input type='radio' name='date_format' value='" . esc_attr( $format ) . "'"; 324 if ( get_option( 'date_format' ) === $format ) { // checked() uses "==" rather than "===" 324 if ( get_option( 'date_format' ) === $format ) { // checked() uses "==" rather than "===". 325 325 echo " checked='checked'"; 326 326 $custom = false; … … 359 359 foreach ( $time_formats as $format ) { 360 360 echo "\t<label><input type='radio' name='time_format' value='" . esc_attr( $format ) . "'"; 361 if ( get_option( 'time_format' ) === $format ) { // checked() uses "==" rather than "===" 361 if ( get_option( 'time_format' ) === $format ) { // checked() uses "==" rather than "===". 362 362 echo " checked='checked'"; 363 363 $custom = false;
Note: See TracChangeset
for help on using the changeset viewer.