Make WordPress Core

Ticket #25461: 25461.patch

File 25461.patch, 3.6 KB (added by anonymized_8769252, 12 years ago)
  • wp-admin/css/wp-admin.css

     
    13731373        border-bottom-width: 0;
    13741374}
    13751375
     1376.timestamp-wrap label {
     1377        display: inline-block;
     1378}
     1379
     1380.timestamp-wrap label > span,
     1381.timestamp-wrap label > abbr {
     1382        display: block;
     1383}
     1384
    13761385#minor-publishing-actions {
    13771386        padding: 10px 10px 0 10px;
    13781387        text-align: right;
     
    38343843        margin: .2em 0;
    38353844}
    38363845
     3846.inline-edit-row fieldset .timestamp-wrap label {
     3847        display: inline-block;
     3848        vertical-align: baseline;
     3849}
     3850
    38373851.inline-edit-row fieldset label.inline-edit-tags {
    38383852        margin-top: 0;
    38393853}
  • wp-admin/includes/template.php

     
    652652        $cur_hh = gmdate( 'H', $time_adj );
    653653        $cur_mn = gmdate( 'i', $time_adj );
    654654
    655         $month = "<select " . ( $multi ? '' : 'id="mm" ' ) . "name=\"mm\"$tab_index_attribute>\n";
     655        $month = '<label for="mm"><span>' . __( 'Month' ) . '</span><select ' . ( $multi ? '' : 'id="mm" ' ) . 'name="mm"' . $tab_index_attribute . '>\n';
    656656        for ( $i = 1; $i < 13; $i = $i +1 ) {
    657657                $monthnum = zeroise($i, 2);
    658658                $month .= "\t\t\t" . '<option value="' . $monthnum . '"';
     
    661661                /* translators: 1: month number (01, 02, etc.), 2: month abbreviation */
    662662                $month .= '>' . sprintf( __( '%1$s-%2$s' ), $monthnum, $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) ) . "</option>\n";
    663663        }
    664         $month .= '</select>';
     664        $month .= '</select></label>';
    665665
    666         $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    667         $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';
    668         $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    669         $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     666        $day = '<label for="jj"><span>' . __( 'Day' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></label>';
     667        $year = '<label for="aa"><span>' . __( 'Year' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" /></label>';
     668        $hour = '<label for="hh"><abbr title="' . __( 'Hour' ) . '">' . __( 'HH' ) . '</abbr><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></label>';
     669        $minute = '<label for="mn"><abbr title="' . __( 'Minute' ) . '">' . __( 'MM' ) . '</abbr><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></label>';
    670670
    671671        echo '<div class="timestamp-wrap">';
    672672        /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
     
    20172017        echo str_repeat( '<div class="star star-half"></div>', $half_stars );
    20182018        echo str_repeat( '<div class="star star-empty"></div>', $empty_stars);
    20192019        echo '</div>';
    2020 }
    2021  No newline at end of file
     2020}