From 48f0f0a89e2d9cd3127bf27e6c405b0295027d7d Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 24 Dec 2005 20:04:59 +0000 Subject: [PATCH] Update post_modified when the post is changed. fixes #1837 git-svn-id: http://svn.automattic.com/wordpress/trunk@3357 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 916d1e7f1e..67892b8927 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -136,8 +136,8 @@ function wp_insert_post($postarr = array()) { post_name = '$post_name', to_ping = '$to_ping', pinged = '$pinged', - post_modified = '$post_date', - post_modified_gmt = '$post_date_gmt', + post_modified = '".current_time('mysql')."', + post_modified_gmt = '".current_time('mysql',1)."', post_parent = '$post_parent', menu_order = '$menu_order' WHERE ID = $post_ID"); @@ -310,8 +310,8 @@ function wp_insert_attachment($object, $file = false, $post_parent = 0) { post_name = '$post_name', to_ping = '$to_ping', pinged = '$pinged', - post_modified = '$post_date', - post_modified_gmt = '$post_date_gmt', + post_modified = '".current_time('mysql')."', + post_modified_gmt = '".current_time('mysql',1)."', post_parent = '$post_parent', menu_order = '$menu_order', post_mime_type = '$post_mime_type',