Refactor login. see #5405

git-svn-id: https://develop.svn.wordpress.org/trunk@6643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-01-22 19:35:19 +00:00
parent 61fb6c5c53
commit 9ecb360c81
4 changed files with 336 additions and 245 deletions
+1 -1
View File
@@ -1062,7 +1062,7 @@ function wp_insert_post($postarr = array()) {
$post_date_gmt = '0000-00-00 00:00:00';
}
if ( $update ) {
if ( $update || '0000-00-00 00:00:00' == $post_date ) {
$post_modified = current_time( 'mysql' );
$post_modified_gmt = current_time( 'mysql', 1 );
} else {