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
This commit is contained in:
Ryan Boren 2006-01-18 19:30:28 +00:00
parent bc83012b6a
commit 006f02c99c
1 changed files with 1 additions and 0 deletions

View File

@ -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))