From a196faec471b31245f85dd0d006790320792a918 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 28 Jan 2009 19:37:36 +0000 Subject: [PATCH] Drafts have post_date populated now, so look for a zeroed out post_date_gmt to determine non-scheduled nature. fixes #8978 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@10451 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 590f0c75b..6e25cdafd 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2438,7 +2438,7 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) { global $wp_locale, $post, $comment; if ( $for_post ) - $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date ) ) ? false : true; + $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date_gmt || '0000-00-00 00:00:00' == $post->post_date_gmt ) ) ? false : true; $tab_index_attribute = ''; if ( (int) $tab_index > 0 )