Mystery of the disappearing post solved, fixes #1879
git-svn-id: https://develop.svn.wordpress.org/trunk@3089 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b49bd4d290
commit
1663e2088e
@ -618,7 +618,7 @@ class WP_Query {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (mysql2date('U', $this->posts[0]->post_date) > mysql2date('U', $now)) { //it's future dated
|
||||
if (mysql2date('U', $this->posts[0]->post_date_gmt) > mysql2date('U', $now)) { //it's future dated
|
||||
$this->is_preview = true;
|
||||
if (!current_user_can('edit_post', $this->posts[0]->ID)) {
|
||||
$this->posts = array ( );
|
||||
|
Loading…
Reference in New Issue
Block a user