Skip to content

Commit

Permalink
Drafts have post_date populated now, so look for a zeroed out post_da…
Browse files Browse the repository at this point in the history
…te_gmt to determine non-scheduled nature. fixes #8978 for 2.7

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
markjaquith committed Jan 28, 2009
1 parent 6816c50 commit a91fef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-admin/includes/template.php
Expand Up @@ -2399,7 +2399,7 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
global $wp_locale, $post, $comment; global $wp_locale, $post, $comment;


if ( $for_post ) 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 = ''; $tab_index_attribute = '';
if ( (int) $tab_index > 0 ) if ( (int) $tab_index > 0 )
Expand Down

0 comments on commit a91fef2

Please sign in to comment.