Ticket #10244: xmlrpc.php.diff

File xmlrpc.php.diff, 775 bytes (added by josephscott, 3 years ago)
  • xmlrpc.php

     
    25742574                        $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date'], false); 
    25752575                        $post_date_gmt = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt'], false); 
    25762576 
     2577                        // For drafts use the GMT version of the post date 
     2578                        if ( $postdata['post_status'] == 'draft' ) { 
     2579                                $post_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $postdata['post_date'] ) ); 
     2580                                $post_date_gmt = preg_replace( '|\-|', '', $post_date_gmt ); 
     2581                                $post_date_gmt = preg_replace( '| |', 'T', $post_date_gmt ); 
     2582                        } 
     2583 
    25772584                        $categories = array(); 
    25782585                        $catids = wp_get_post_categories($post_ID); 
    25792586                        foreach($catids as $catid)