Give draft posts a current timestamp. Props David House and technosailor. fixes #2164

git-svn-id: http://svn.automattic.com/wordpress/trunk@3458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-18 19:30:28 +00:00
parent fbc3a7d010
commit f6c66d873d
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))