WordPress.org

Make WordPress Core

Changeset 20665


Ignore:
Timestamp:
05/01/12 01:11:18 (2 years ago)
Author:
nacin
Message:

Use correct variables. props batmoo. fixes #20566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r20664 r20665  
    25592559        if ( !empty( $content_struct['date_created_gmt'] ) ) { 
    25602560            // We know this is supposed to be GMT, so we're going to slap that Z on there by force 
    2561             $dateCreated = rtrim( $content_struct['post_date_gmt']->getIso(), 'Z' ) . 'Z'; 
     2561            $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 
    25622562            $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); 
    25632563            $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT'); 
     
    38273827        if ( !empty( $content_struct['date_created_gmt'] ) ) 
    38283828            // We know this is supposed to be GMT, so we're going to slap that Z on there by force 
    3829             $dateCreated = rtrim( $content_struct['post_date_gmt']->getIso(), 'Z' ) . 'Z'; 
     3829            $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 
    38303830        elseif ( !empty( $content_struct['dateCreated']) ) 
    38313831            $dateCreated = $content_struct['dateCreated']->getIso(); 
     
    41464146        if ( !empty( $content_struct['date_created_gmt'] ) ) 
    41474147            // We know this is supposed to be GMT, so we're going to slap that Z on there by force 
    4148             $dateCreated = rtrim( $content_struct['post_date_gmt']->getIso(), 'Z' ) . 'Z'; 
     4148            $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 
    41494149        elseif ( !empty( $content_struct['dateCreated']) ) 
    41504150            $dateCreated = $content_struct['dateCreated']->getIso(); 
Note: See TracChangeset for help on using the changeset viewer.