|
@@ 1230-1234 (lines=5) @@
|
| 1227 |
|
// ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct, |
| 1228 |
|
// since _insert_post will ignore the non-GMT date if the GMT date is set |
| 1229 |
|
if ( isset( $content_struct['post_date_gmt'] ) && ! ( $content_struct['post_date_gmt'] instanceof IXR_Date ) ) { |
| 1230 |
|
if ( $content_struct['post_date_gmt'] == '0000-00-00 00:00:00' || isset( $content_struct['post_date'] ) ) { |
| 1231 |
|
unset( $content_struct['post_date_gmt'] ); |
| 1232 |
|
} else { |
| 1233 |
|
$content_struct['post_date_gmt'] = $this->_convert_date( $content_struct['post_date_gmt'] ); |
| 1234 |
|
} |
| 1235 |
|
} |
| 1236 |
|
|
| 1237 |
|
/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
|
@@ 1595-1598 (lines=4) @@
|
| 1592 |
|
* Ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct, |
| 1593 |
|
* since _insert_post() will ignore the non-GMT date if the GMT date is set. |
| 1594 |
|
*/ |
| 1595 |
|
if ( $post['post_date_gmt'] == '0000-00-00 00:00:00' || isset( $content_struct['post_date'] ) ) |
| 1596 |
|
unset( $post['post_date_gmt'] ); |
| 1597 |
|
else |
| 1598 |
|
$post['post_date_gmt'] = $this->_convert_date( $post['post_date_gmt'] ); |
| 1599 |
|
|
| 1600 |
|
$this->escape( $post ); |
| 1601 |
|
$merged_content_struct = array_merge( $post, $content_struct ); |