diff --git src/wp-includes/class-wp-xmlrpc-server.php src/wp-includes/class-wp-xmlrpc-server.php
index 5c8ee133c6..5cb59d8175 100644
|
|
class wp_xmlrpc_server extends IXR_Server { |
1705 | 1705 | $post['post_date_gmt'] = $this->_convert_date( $post['post_date_gmt'] ); |
1706 | 1706 | } |
1707 | 1707 | |
| 1708 | // If the API client did not provide post_date then we must not perpetuate the |
| 1709 | // value that was stored in the database, or it will appear to be an intentional |
| 1710 | // edit. Conveying it here as if it were coming from the API client will cause an |
| 1711 | // otherwise zeroed out post_date_gmt to get set with the value that was originally |
| 1712 | // stored in the database when the draft was created. |
| 1713 | if ( !isset( $content_struct['post_date'] ) ) { |
| 1714 | unset( $post['post_date'] ); |
| 1715 | } |
| 1716 | |
1708 | 1717 | $this->escape( $post ); |
1709 | 1718 | $merged_content_struct = array_merge( $post, $content_struct ); |
1710 | 1719 | |