Update post_modified when the post is changed. fixes #1837

git-svn-id: https://develop.svn.wordpress.org/trunk@3357 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-12-24 20:04:59 +00:00
parent 250ecaaf4f
commit bae7d044d2

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