Time should update when editing a draft.
git-svn-id: https://develop.svn.wordpress.org/trunk@141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
918fbbb95f
commit
05ce9b7dd9
@ -591,10 +591,17 @@ function dropdown_categories($blog_ID=1) {
|
||||
echo "</select>";
|
||||
}
|
||||
|
||||
function touch_time($edit=1) {
|
||||
function touch_time($edit = 1) {
|
||||
global $month, $postdata, $time_difference;
|
||||
// echo $postdata['Date'];
|
||||
echo '<p><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" /> <label for="timestamp">Edit timestamp</label><br />';
|
||||
if ('draft' == $postdata['post_status']) {
|
||||
$checked = 'checked="checked" ';
|
||||
$edit = false;
|
||||
} else {
|
||||
$checked = ' ';
|
||||
}
|
||||
|
||||
echo '<p><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" '.$checked.'/> <label for="timestamp">Edit timestamp</label><br />';
|
||||
|
||||
$time_adj = time() + ($time_difference * 3600);
|
||||
$jj = ($edit) ? mysql2date('d', $postdata['Date']) : date('d', $time_adj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user