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
This commit is contained in:
ryan 2005-12-24 20:04:59 +00:00
parent 541c30cc70
commit 48f0f0a89e
1 changed files with 4 additions and 4 deletions

View File

@ -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',