WordPress.org

Make WordPress Core

Changeset 10007


Ignore:
Timestamp:
12/02/2008 02:46:21 AM (12 years ago)
Author:
ryan
Message:

No need to fake post_date for drafts anymore. fixes #6520

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r9986 r10007  
    901901    if (in_array($post->post_status, array('draft', 'pending'))) {
    902902        $post->post_status = 'publish';
    903         $post->post_date = date('Y-m-d H:i:s');
    904903        $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID);
    905904    }
Note: See TracChangeset for help on using the changeset viewer.