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:
parent
bc83012b6a
commit
006f02c99c
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue