Ticket #19907: 19907.patch
File 19907.patch, 627 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/post.php
223 223 } 224 224 } 225 225 226 // Drafts shouldn't be assigned a date unless explicitly done so by the user 227 if ( in_array( $post_data['post_status'], array( 'draft', 'pending', 'auto-draft' ) ) && !empty( $post_data['post_date'] ) && $post_data['post_date'] == $post->post_date ) 228 $post_data['post_date_gmt'] = ''; 229 226 230 add_meta( $post_ID ); 227 231 228 232 update_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID );