mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
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 {
|
||||
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…
x
Reference in New Issue
Block a user