diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 5332eb307..720997e33 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -409,10 +409,9 @@ function update_meta($mid, $mkey, $mvalue) { return $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = '$mkey', meta_value = '$mvalue' WHERE meta_id = '$mid'"); } -function touch_time($edit = 1) { - global $month, $postdata; - // echo $postdata['Date']; - if ('draft' == $postdata->post_status) { +function touch_time($edit = 1, $for_post = 1) { + global $month, $postdata, $commentdata; + if ( $for_post && ('draft' == $postdata->post_status) ) { $checked = 'checked="checked" '; $edit = false; } else { @@ -422,7 +421,7 @@ function touch_time($edit = 1) { echo '
+ +: + 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); + } + echo "{$month[$mm]} $jj, $aa @ $hh:$mn"; ?> + 4) : ?>