Make WordPress Core

Ticket #19907: 19907.patch

File 19907.patch, 627 bytes (added by SergeyBiryukov, 13 years ago)
  • wp-admin/includes/post.php

     
    223223                }
    224224        }
    225225
     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
    226230        add_meta( $post_ID );
    227231
    228232        update_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID );