From 006f02c99cf146e56bbb63292b578bf41d1f6505 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 18 Jan 2006 19:30:28 +0000 Subject: [PATCH] Give draft posts a current timestamp. Props David House and technosailor. fixes #2164 git-svn-id: https://develop.svn.wordpress.org/trunk@3458 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 41d84fb64e..76587d4715 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -662,6 +662,7 @@ class WP_Query { $this->posts = array(); } else { $this->is_preview = true; + $this->posts[0]->post_date = current_time('mysql'); } } else { if (! current_user_can('read_post', $this->posts[0]->ID))