Ticket #17180: 17180-3.diff
File 17180-3.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/post.php
122 122 $hh = ($hh > 23 ) ? $hh -24 : $hh; 123 123 $mn = ($mn > 59 ) ? $mn -60 : $mn; 124 124 $ss = ($ss > 59 ) ? $ss -60 : $ss; 125 if ( !checkdate( $mm, $jj, $aa ) ) { 126 return new WP_Error( 'invalid_date', __( 'Woops, the provided date is invalid.' ) ); 127 } 125 128 $post_data['post_date'] = sprintf( "%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss ); 126 129 $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] ); 127 130 } -
wp-admin/js/post.dev.js
528 528 return false; 529 529 }); 530 530 531 $('#post').submit(function(e){ 532 if ( !updateText() ) { 533 e.preventDefault(); 534 $('#timestampdiv').show(); 535 $('#publishing-action .ajax-loading').css('visibility', 'hidden'); 536 $('#publish').prop('disabled', false).removeClass('button-primary-disabled'); 537 return false; 538 } 539 }); 540 531 541 $('#post-status-select').siblings('a.edit-post-status').click(function() { 532 542 if ($('#post-status-select').is(":hidden")) { 533 543 $('#post-status-select').slideDown('fast');