Ensure that the resulting post time is localized after the date is changed. props SergeyBiryukov. fixes #24072.
git-svn-id: https://develop.svn.wordpress.org/trunk@24046 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b79ec28fef
commit
3fc35855e9
|
@ -619,8 +619,8 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
|
|||
$minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
|
||||
|
||||
echo '<div class="timestamp-wrap">';
|
||||
/* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
|
||||
printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute);
|
||||
/* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
|
||||
printf( __( '%1$s %2$s, %3$s @ %4$s : %5$s' ), $month, $day, $year, $hour, $minute );
|
||||
|
||||
echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
|
||||
|
||||
|
|
|
@ -483,11 +483,12 @@ jQuery(document).ready( function($) {
|
|||
} else {
|
||||
$('#timestamp').html(
|
||||
publishOn + ' <b>' +
|
||||
$('option[value="' + $('#mm').val() + '"]', '#mm').text() + ' ' +
|
||||
jj + ', ' +
|
||||
aa + ' @ ' +
|
||||
hh + ':' +
|
||||
mn + '</b> '
|
||||
postL10n.dateFormat.replace( '%1$s', $('option[value="' + $('#mm').val() + '"]', '#mm').text() )
|
||||
.replace( '%2$s', jj )
|
||||
.replace( '%3$s', aa )
|
||||
.replace( '%4$s', hh )
|
||||
.replace( '%5$s', mn )
|
||||
+ '</b> '
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -392,6 +392,8 @@ function wp_default_scripts( &$scripts ) {
|
|||
'publishOn' => __('Publish on:'),
|
||||
'publishOnFuture' => __('Schedule for:'),
|
||||
'publishOnPast' => __('Published on:'),
|
||||
/* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
|
||||
'dateFormat' => __('%1$s %2$s, %3$s @ %4$s : %5$s'),
|
||||
'showcomm' => __('Show more comments'),
|
||||
'endcomm' => __('No more comments found.'),
|
||||
'publish' => __('Publish'),
|
||||
|
|
Loading…
Reference in New Issue