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:
alex_t_king 2004-01-07 17:36:54 +00:00
parent b4c8ae6c9b
commit 38361b3edf

View File

@ -285,7 +285,7 @@ if ($p == 'all') {
$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)) {
$where .= ' AND post_date <= \''.$now.'\'';
}