Make WordPress Core

Ticket #18998: class-wp-xmlrpc-server.diff

File class-wp-xmlrpc-server.diff, 1.5 KB (added by alien8, 13 years ago)
  • class-wp-xmlrpc-server.php

    old new  
    12041204                // Do some timestamp voodoo
    12051205                if ( !empty( $content_struct['date_created_gmt'] ) ) {
    12061206                        $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt']->getIso() ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
    1207                         $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    12081207                        $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
     1208                        $comment_date = get_date_from_gmt($comment_date_gmt);
    12091209                }
    12101210
    12111211                if ( isset($content_struct['content']) )
     
    23752375                        $dateCreated = $content_struct['dateCreated']->getIso();
    23762376
    23772377                if ( !empty( $dateCreated ) ) {
    2378                         $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    23792378                        $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
     2379                        $post_date = get_date_from_gmt($post_date_gmt);
    23802380                } else {
    23812381                        $post_date = current_time('mysql');
    23822382                        $post_date_gmt = current_time('mysql', 1);
     
    27032703                        $dateCreated = $content_struct['dateCreated']->getIso();
    27042704
    27052705                if ( !empty( $dateCreated ) ) {
    2706                         $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    27072706                        $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
     2707                        $post_date = get_date_from_gmt($post_date_gmt);
    27082708                } else {
    27092709                        $post_date     = $postdata['post_date'];
    27102710                        $post_date_gmt = $postdata['post_date_gmt'];