checking against post_date_gmt instead of post_date makes more sense
git-svn-id: http://svn.automattic.com/wordpress/trunk@1047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5b7829456c
commit
c572cc8432
|
@ -404,11 +404,11 @@ if ($p == 'all') {
|
|||
$where = '';
|
||||
}
|
||||
|
||||
$now = gmdate('Y-m-d H:i:59', time() + ($time_difference * 3600));
|
||||
$now = gmdate('Y-m-d H:i:59');
|
||||
|
||||
if ($pagenow != 'post.php' && $pagenow != 'edit.php') {
|
||||
if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) {
|
||||
$where .= " AND post_date <= '$now'";
|
||||
$where .= " AND post_date_gmt <= '$now'";
|
||||
}
|
||||
|
||||
$distinct = 'DISTINCT';
|
||||
|
|
Loading…
Reference in New Issue