Make WordPress Core

Ticket #35064: 35064.patch

File 35064.patch, 1.9 KB (added by afercia, 9 years ago)
  • src/wp-admin/options-general.php

     
    147147
    148148        <span id="utc-time"><?php
    149149                /* translators: %s: UTC time */
    150                 printf( __( '<abbr title="Coordinated Universal Time">UTC</abbr> time is %s' ),
     150                printf( __( '<abbr>UTC</abbr> (Coordinated Universal Time) is %s' ),
    151151                        '<code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code>'
    152152                );
    153153        ?></span>
     
    232232        $custom = true;
    233233
    234234        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) . "'";
    236236                if ( get_option('date_format') === $format ) { // checked() uses "==" rather than "==="
    237237                        echo " checked='checked'";
    238238                        $custom = false;
    239239                }
    240                 echo ' /> ' . date_i18n( $format ) . "</label><br />\n";
     240                echo ' /> ' . date_i18n( $format ) . ' <code>' . $format . "</code></label><br />\n";
    241241        }
    242242
    243243        echo '  <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"';
     
    265265        $custom = true;
    266266
    267267        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) . "'";
    269269                if ( get_option('time_format') === $format ) { // checked() uses "==" rather than "==="
    270270                        echo " checked='checked'";
    271271                        $custom = false;
    272272                }
    273                 echo ' /> ' . date_i18n( $format ) . "</label><br />\n";
     273                echo ' /> ' . date_i18n( $format ) . ' <code>' . $format . "</code></label><br />\n";
    274274        }
    275275
    276276        echo '  <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';