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:
parent
a3a84d2957
commit
e13b370b3d
|
@ -618,7 +618,7 @@ class WP_Query {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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;
|
$this->is_preview = true;
|
||||||
if (!current_user_can('edit_post', $this->posts[0]->ID)) {
|
if (!current_user_can('edit_post', $this->posts[0]->ID)) {
|
||||||
$this->posts = array ( );
|
$this->posts = array ( );
|
||||||
|
|
Loading…
Reference in New Issue