If post_date_gmt is not supplied, derive it from post_date instead of current time.
git-svn-id: https://develop.svn.wordpress.org/trunk@2969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b127cd82af
commit
de8d78270a
@ -57,7 +57,7 @@ function wp_insert_post($postarr = array()) {
|
||||
if (empty($post_date))
|
||||
$post_date = current_time('mysql');
|
||||
if (empty($post_date_gmt))
|
||||
$post_date_gmt = current_time('mysql', 1);
|
||||
$post_date_gmt = get_gmt_from_date($post_date);
|
||||
|
||||
if ( empty($comment_status) ) {
|
||||
if ( $update )
|
||||
|
Loading…
x
Reference in New Issue
Block a user