Fix the updated times when publishing/editing with APP. See #5680 props rubys.

git-svn-id: https://develop.svn.wordpress.org/trunk@6645 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-01-23 20:25:08 +00:00
parent c929b2f5e5
commit 5ddb77af06
2 changed files with 19 additions and 5 deletions

View File

@@ -1883,6 +1883,11 @@ function wp_insert_attachment($object, $file = false, $parent = 0) {
if ( empty($post_date_gmt) )
$post_date_gmt = current_time('mysql', 1);
if ( empty($post_modified) )
$post_modified = $post_date;
if ( empty($post_modified_gmt) )
$post_modified_gmt = $post_date_gmt;
if ( empty($comment_status) ) {
if ( $update )
$comment_status = 'closed';