mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
fbc3a7d010
commit
f6c66d873d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user