mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user