Mystery of the disappearing post solved, fixes #1879

git-svn-id: http://svn.automattic.com/wordpress/trunk@3089 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-14 23:28:10 +00:00
parent a3a84d2957
commit e13b370b3d
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 ( );