Ticket #35064: 35064.patch
File 35064.patch, 1.9 KB (added by , 9 years ago) |
---|
-
src/wp-admin/options-general.php
147 147 148 148 <span id="utc-time"><?php 149 149 /* translators: %s: UTC time */ 150 printf( __( '<abbr title="Coordinated Universal Time">UTC</abbr> timeis %s' ),150 printf( __( '<abbr>UTC</abbr> (Coordinated Universal Time) is %s' ), 151 151 '<code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code>' 152 152 ); 153 153 ?></span> … … 232 232 $custom = true; 233 233 234 234 foreach ( $date_formats as $format ) { 235 echo "\t<label title='" . esc_attr($format) . "'><input type='radio' name='date_format' value='" . esc_attr($format) . "'";235 echo "\t<label><input type='radio' name='date_format' value='" . esc_attr($format) . "'"; 236 236 if ( get_option('date_format') === $format ) { // checked() uses "==" rather than "===" 237 237 echo " checked='checked'"; 238 238 $custom = false; 239 239 } 240 echo ' /> ' . date_i18n( $format ) . "</label><br />\n";240 echo ' /> ' . date_i18n( $format ) . ' <code>' . $format . "</code></label><br />\n"; 241 241 } 242 242 243 243 echo ' <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; … … 265 265 $custom = true; 266 266 267 267 foreach ( $time_formats as $format ) { 268 echo "\t<label title='" . esc_attr($format) . "'><input type='radio' name='time_format' value='" . esc_attr($format) . "'";268 echo "\t<label><input type='radio' name='time_format' value='" . esc_attr($format) . "'"; 269 269 if ( get_option('time_format') === $format ) { // checked() uses "==" rather than "===" 270 270 echo " checked='checked'"; 271 271 $custom = false; 272 272 } 273 echo ' /> ' . date_i18n( $format ) . "</label><br />\n";273 echo ' /> ' . date_i18n( $format ) . ' <code>' . $format . "</code></label><br />\n"; 274 274 } 275 275 276 276 echo ' <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';