From d24130b77b3d7c5922451f852a2524f4693fbeb3 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 2 Dec 2008 02:46:21 +0000 Subject: [PATCH] No need to fake post_date for drafts anymore. fixes #6520 git-svn-id: http://svn.automattic.com/wordpress/trunk@10007 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index c4d6a599a7..fd2482c4ef 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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); }