Make WordPress Core

Ticket #25461: 25461-alternate.patch

File 25461-alternate.patch, 2.7 KB (added by anonymized_8769252, 12 years ago)
  • 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" class="screen-reader-text">' . __( 'Month' ) . '</label><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 . '"';
     
    663663        }
    664664        $month .= '</select>';
    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" class="screen-reader-text">' . __( 'Day' ) . '</label><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     667        $year = '<label for="aa" class="screen-reader-text">' . __( 'Year' ) . '</label><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';
     668        $hour = '<label for="hh" class="screen-reader-text">' . __( 'Hour' ) . '</label><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     669        $minute = '<label for="mn" class="screen-reader-text">' . __( 'Minute' ) . '</label><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    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}