mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
Ensure that the resulting post time is localized after the date is changed. props SergeyBiryukov. fixes #24072.
git-svn-id: http://core.svn.wordpress.org/trunk@24046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8805d7f22
commit
d095eac796
@ -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" />';
|
$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">';
|
echo '<div class="timestamp-wrap">';
|
||||||
/* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
|
/* 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);
|
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 . '" />';
|
echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
|
||||||
|
|
||||||
|
@ -483,11 +483,12 @@ jQuery(document).ready( function($) {
|
|||||||
} else {
|
} else {
|
||||||
$('#timestamp').html(
|
$('#timestamp').html(
|
||||||
publishOn + ' <b>' +
|
publishOn + ' <b>' +
|
||||||
$('option[value="' + $('#mm').val() + '"]', '#mm').text() + ' ' +
|
postL10n.dateFormat.replace( '%1$s', $('option[value="' + $('#mm').val() + '"]', '#mm').text() )
|
||||||
jj + ', ' +
|
.replace( '%2$s', jj )
|
||||||
aa + ' @ ' +
|
.replace( '%3$s', aa )
|
||||||
hh + ':' +
|
.replace( '%4$s', hh )
|
||||||
mn + '</b> '
|
.replace( '%5$s', mn )
|
||||||
|
+ '</b> '
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -392,6 +392,8 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'publishOn' => __('Publish on:'),
|
'publishOn' => __('Publish on:'),
|
||||||
'publishOnFuture' => __('Schedule for:'),
|
'publishOnFuture' => __('Schedule for:'),
|
||||||
'publishOnPast' => __('Published on:'),
|
'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'),
|
'showcomm' => __('Show more comments'),
|
||||||
'endcomm' => __('No more comments found.'),
|
'endcomm' => __('No more comments found.'),
|
||||||
'publish' => __('Publish'),
|
'publish' => __('Publish'),
|
||||||
|
Loading…
Reference in New Issue
Block a user