diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 96ee916e56..a63791b743 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -836,14 +836,11 @@ function update_meta($mid, $mkey, $mvalue) { function touch_time($edit = 1, $for_post = 1) { global $month, $post, $comment; - if ($for_post && ('draft' == $post->post_status)) { - $checked = 'checked="checked" '; - $edit = false; - } else { - $checked = ' '; - } - echo '
'; + if ( $for_post ) + $edit = ( ('draft' == $post->post_status) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date) ) ? false : true; + + echo '
'; $time_adj = time() + (get_settings('gmt_offset') * 3600); $post_date = ($for_post) ? $post->post_date : $comment->comment_date; @@ -873,19 +870,11 @@ function touch_time($edit = 1, $for_post = 1) { : -: - post_status)) { - $jj = mysql2date('d', $post_date); - $mm = mysql2date('m', $post_date); - $aa = mysql2date('Y', $post_date); - $hh = mysql2date('H', $post_date); - $mn = mysql2date('i', $post_date); - $ss = mysql2date('s', $post_date); +