diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 916d1e7f1..67892b892 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',