From 183c6c718f0e817ec6feacab70674a295f9a2113 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 1 Jun 2003 14:02:17 +0000 Subject: [PATCH] Time should update when editing a draft. git-svn-id: http://svn.automattic.com/wordpress/trunk@141 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2functions.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 72e05cf08d..79b8735ef7 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -591,10 +591,17 @@ function dropdown_categories($blog_ID=1) { echo ""; } -function touch_time($edit=1) { +function touch_time($edit = 1) { global $month, $postdata, $time_difference; // echo $postdata['Date']; - echo '


'; + if ('draft' == $postdata['post_status']) { + $checked = 'checked="checked" '; + $edit = false; + } else { + $checked = ' '; + } + + echo '


'; $time_adj = time() + ($time_difference * 3600); $jj = ($edit) ? mysql2date('d', $postdata['Date']) : date('d', $time_adj);