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

git-svn-id: https://develop.svn.wordpress.org/trunk@10007 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-02 02:46:21 +00:00
parent 2e9e2db21e
commit b5a5db848a

View File

@ -900,7 +900,6 @@ function get_sample_permalink($id, $title=null, $name = null) {
// drafts, so we will fake, that our post is published
if (in_array($post->post_status, array('draft', 'pending'))) {
$post->post_status = 'publish';
$post->post_date = date('Y-m-d H:i:s');
$post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID);
}