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:
Matt Mullenweg 2005-11-14 23:28:10 +00:00
parent b49bd4d290
commit 1663e2088e
1 changed files with 1 additions and 1 deletions

View File

@ -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 ( );