XML-RPC: Revert [34681] as it broke date handling.
Merges [36163] to the 4.4 branch. props dossy, hnle, redsweater. see #35053, #30429 (original ticket). Built from https://develop.svn.wordpress.org/branches/4.4@36164 git-svn-id: http://core.svn.wordpress.org/branches/4.4@36130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
410109ca49
commit
fb82faaac6
|
@ -1349,8 +1349,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
}
|
||||
|
||||
if ( ! empty( $dateCreated ) ) {
|
||||
$post_data['post_date'] = iso8601_to_datetime( $dateCreated );
|
||||
$post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] );
|
||||
$post_data['post_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ) );
|
||||
$post_data['post_date_gmt'] = iso8601_to_datetime( $dateCreated, 'GMT' );
|
||||
}
|
||||
|
||||
if ( ! isset( $post_data['ID'] ) )
|
||||
|
@ -3423,8 +3423,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
if ( !empty( $content_struct['date_created_gmt'] ) ) {
|
||||
// We know this is supposed to be GMT, so we're going to slap that Z on there by force
|
||||
$dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z';
|
||||
$comment_date = iso8601_to_datetime( $dateCreated );
|
||||
$comment_date_gmt = get_gmt_from_date( $comment_date );
|
||||
$comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
|
||||
$comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
|
||||
}
|
||||
|
||||
if ( isset($content_struct['content']) )
|
||||
|
@ -4991,8 +4991,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
$dateCreated = $content_struct['dateCreated']->getIso();
|
||||
|
||||
if ( !empty( $dateCreated ) ) {
|
||||
$post_date = iso8601_to_datetime( $dateCreated );
|
||||
$post_date_gmt = get_gmt_from_date( $post_date );
|
||||
$post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
|
||||
$post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
|
||||
} else {
|
||||
$post_date = '';
|
||||
$post_date_gmt = '';
|
||||
|
@ -5345,8 +5345,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
$dateCreated = $content_struct['dateCreated']->getIso();
|
||||
|
||||
if ( !empty( $dateCreated ) ) {
|
||||
$post_date = iso8601_to_datetime( $dateCreated );
|
||||
$post_date_gmt = get_gmt_from_date( $post_date, 'GMT' );
|
||||
$post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
|
||||
$post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
|
||||
} else {
|
||||
$post_date = $postdata['post_date'];
|
||||
$post_date_gmt = $postdata['post_date_gmt'];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4.1-alpha-36161';
|
||||
$wp_version = '4.4.1-alpha-36164';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue