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

View File

@ -662,6 +662,7 @@ class WP_Query {
$this->posts = array(); $this->posts = array();
} else { } else {
$this->is_preview = true; $this->is_preview = true;
$this->posts[0]->post_date = current_time('mysql');
} }
} else { } else {
if (! current_user_can('read_post', $this->posts[0]->ID)) if (! current_user_can('read_post', $this->posts[0]->ID))