added a check for edit.php when excluding future posts
git-svn-id: http://svn.automattic.com/wordpress/trunk@736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b4c8ae6c9b
commit
38361b3edf
|
@ -285,7 +285,7 @@ if ($p == 'all') {
|
||||||
|
|
||||||
$now = date('Y-m-d H:i:s',(time() + ($time_difference * 3600)));
|
$now = date('Y-m-d H:i:s',(time() + ($time_difference * 3600)));
|
||||||
|
|
||||||
if ($pagenow != 'post.php') {
|
if ($pagenow != 'post.php' && $pagenow != 'edit.php') {
|
||||||
if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) {
|
if ((empty($poststart)) || (empty($postend)) || !($postend > $poststart)) {
|
||||||
$where .= ' AND post_date <= \''.$now.'\'';
|
$where .= ' AND post_date <= \''.$now.'\'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue