Ticket #10244: xmlrpc.php.diff
| File xmlrpc.php.diff, 775 bytes (added by josephscott, 3 years ago) |
|---|
-
xmlrpc.php
2574 2574 $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date'], false); 2575 2575 $post_date_gmt = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt'], false); 2576 2576 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 2577 2584 $categories = array(); 2578 2585 $catids = wp_get_post_categories($post_ID); 2579 2586 foreach($catids as $catid)
