Make WordPress Core


Ignore:
Timestamp:
12/03/2009 09:56:20 AM (16 years ago)
Author:
azaozz
Message:

Validate date/time fields for posts and comments, fixes #10309

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r12311 r12318  
    26302630    $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    26312631    $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     2632
     2633    echo '<div class="timestamp-wrap">';
    26322634    /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
    26332635    printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute);
    26342636
    2635     echo '<input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
     2637    echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
    26362638
    26372639    if ( $multi ) return;
Note: See TracChangeset for help on using the changeset viewer.