If post_date_gmt is not supplied, derive it from post_date instead of current time.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
158b6eafd3
commit
f081b601cc
|
@ -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…
Reference in New Issue