Ticket #30716: 30716.patch
File 30716.patch, 2.4 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/template.php
763 763 764 764 echo '<div class="timestamp-wrap">'; 765 765 /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */ 766 printf( __( '%1$s %2$s, %3$s @ %4$s :%5$s' ), $month, $day, $year, $hour, $minute );766 printf( __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), $month, $day, $year, $hour, $minute ); 767 767 768 768 echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />'; 769 769 -
src/wp-admin/js/post.js
676 676 stamp = $('#timestamp').html(); 677 677 visibility = $('#post-visibility-display').html(); 678 678 679 zeroise = function(number) { 680 var str = number.toString(); 681 682 if ( str.length < 2 ) { 683 str = '0' + str; 684 } 685 686 return str; 687 }; 688 679 689 updateVisibility = function() { 680 690 if ( $postVisibilitySelect.find('input:radio:checked').val() != 'public' ) { 681 691 $('#sticky').prop('checked', false); … … 725 735 } else { 726 736 $('#timestamp').html( 727 737 publishOn + ' <b>' + 728 postL10n.dateFormat.replace( '%1$s', $('option[value="' + $('#mm').val() + '"]', '#mm').text() )729 .replace( '%2$s', jj )738 postL10n.dateFormat.replace( '%1$s', $('option[value="' + $('#mm').val() + '"]', '#mm').text().replace(/[\d\-\s]+/, '') ) 739 .replace( '%2$s', jj.replace(/^0/, '') ) 730 740 .replace( '%3$s', aa ) 731 741 .replace( '%4$s', hh ) 732 .replace( '%5$s', mn) +742 .replace( '%5$s', zeroise( mn ) ) + 733 743 '</b> ' 734 744 ); 735 745 } -
src/wp-includes/script-loader.php
446 446 'publishOnFuture' => __('Schedule for:'), 447 447 'publishOnPast' => __('Published on:'), 448 448 /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */ 449 'dateFormat' => __('%1$s %2$s, %3$s @ %4$s :%5$s'),449 'dateFormat' => __('%1$s %2$s, %3$s @ %4$s:%5$s'), 450 450 'showcomm' => __('Show more comments'), 451 451 'endcomm' => __('No more comments found.'), 452 452 'publish' => __('Publish'),