mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user