From 1825065572929693b04beac7b8c6a6d706747ce5 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Thu, 12 Feb 2004 08:34:31 +0000 Subject: [PATCH] Track last modified time git-svn-id: https://develop.svn.wordpress.org/trunk@867 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 0d0aefd106..114765a1f3 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -85,7 +85,7 @@ switch($action) { $ss = ($ss > 59) ? $ss - 60 : $ss; $now = "$aa-$mm-$jj $hh:$mn:$ss"; } else { - $now = date('Y-m-d H:i:s', (time() + ($time_difference * 3600))); + $now = current_time('mysql'); } if (!empty($HTTP_POST_VARS['mode'])) { @@ -310,6 +310,7 @@ switch($action) { } else { $datemodif = ''; } + $now = current_time('mysql'); $result = $wpdb->query(" UPDATE $tableposts SET @@ -323,7 +324,8 @@ switch($action) { ping_status = '$ping_status', post_password = '$post_password', post_name = '$post_name', - to_ping = '$trackback' + to_ping = '$trackback', + post_modified = '$now' WHERE ID = $post_ID ");