Ticket #9730: 9730-wp-admin.diff
File 9730-wp-admin.diff, 4.7 KB (added by , 16 years ago) |
---|
-
wp-admin/includes/upgrade.php
685 685 $posts = $wpdb->get_results("SELECT ID, post_date FROM $wpdb->posts WHERE post_status ='future'"); 686 686 if ( !empty($posts) ) 687 687 foreach ( $posts as $post ) 688 wp_schedule_single_event(mysql2date('U', $post->post_date ), 'publish_future_post', array($post->ID));688 wp_schedule_single_event(mysql2date('U', $post->post_date, false), 'publish_future_post', array($post->ID)); 689 689 } 690 690 } 691 691 -
wp-admin/includes/template.php
1298 1298 <div class="comment_status">' . $post->comment_status . '</div> 1299 1299 <div class="ping_status">' . $post->ping_status . '</div> 1300 1300 <div class="_status">' . $post->post_status . '</div> 1301 <div class="jj">' . mysql2date( 'd', $post->post_date ) . '</div>1302 <div class="mm">' . mysql2date( 'm', $post->post_date ) . '</div>1303 <div class="aa">' . mysql2date( 'Y', $post->post_date ) . '</div>1304 <div class="hh">' . mysql2date( 'H', $post->post_date ) . '</div>1305 <div class="mn">' . mysql2date( 'i', $post->post_date ) . '</div>1306 <div class="ss">' . mysql2date( 's', $post->post_date ) . '</div>1301 <div class="jj">' . mysql2date( 'd', $post->post_date, false ) . '</div> 1302 <div class="mm">' . mysql2date( 'm', $post->post_date, false ) . '</div> 1303 <div class="aa">' . mysql2date( 'Y', $post->post_date, false ) . '</div> 1304 <div class="hh">' . mysql2date( 'H', $post->post_date, false ) . '</div> 1305 <div class="mn">' . mysql2date( 'i', $post->post_date, false ) . '</div> 1306 <div class="ss">' . mysql2date( 's', $post->post_date, false ) . '</div> 1307 1307 <div class="post_password">' . wp_specialchars($post->post_password, 1) . '</div>'; 1308 1308 1309 1309 if( $post->post_type == 'page' ) … … 2532 2532 2533 2533 $time_adj = time() + (get_option( 'gmt_offset' ) * 3600 ); 2534 2534 $post_date = ($for_post) ? $post->post_date : $comment->comment_date; 2535 $jj = ($edit) ? mysql2date( 'd', $post_date ) : gmdate( 'd', $time_adj );2536 $mm = ($edit) ? mysql2date( 'm', $post_date ) : gmdate( 'm', $time_adj );2537 $aa = ($edit) ? mysql2date( 'Y', $post_date ) : gmdate( 'Y', $time_adj );2538 $hh = ($edit) ? mysql2date( 'H', $post_date ) : gmdate( 'H', $time_adj );2539 $mn = ($edit) ? mysql2date( 'i', $post_date ) : gmdate( 'i', $time_adj );2540 $ss = ($edit) ? mysql2date( 's', $post_date ) : gmdate( 's', $time_adj );2535 $jj = ($edit) ? mysql2date( 'd', $post_date, false ) : gmdate( 'd', $time_adj ); 2536 $mm = ($edit) ? mysql2date( 'm', $post_date, false ) : gmdate( 'm', $time_adj ); 2537 $aa = ($edit) ? mysql2date( 'Y', $post_date, false ) : gmdate( 'Y', $time_adj ); 2538 $hh = ($edit) ? mysql2date( 'H', $post_date, false ) : gmdate( 'H', $time_adj ); 2539 $mn = ($edit) ? mysql2date( 'i', $post_date, false ) : gmdate( 'i', $time_adj ); 2540 $ss = ($edit) ? mysql2date( 's', $post_date, false ) : gmdate( 's', $time_adj ); 2541 2541 2542 2542 $cur_jj = gmdate( 'd', $time_adj ); 2543 2543 $cur_mm = gmdate( 'm', $time_adj ); -
wp-admin/edit-page-form.php
41 41 $nonce_action = 'update-page_' . $post_ID; 42 42 $form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />"; 43 43 $autosave = wp_get_post_autosave( $post_ID ); 44 if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt) )44 if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) 45 45 $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) ); 46 46 } 47 47 -
wp-admin/edit-form-advanced.php
41 41 $autosave = wp_get_post_autosave( $post_ID ); 42 42 43 43 // Detect if there exists an autosave newer than the post and if that autosave is different than the post 44 if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt) ) {44 if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) { 45 45 foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) { 46 46 if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) { 47 47 $notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );