Changes in branches/2.8/xmlrpc.php [11847:11687]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/xmlrpc.php
r11847 r11687 527 527 $page_date_gmt = mysql2date("Ymd\TH:i:s", $page->post_date_gmt, false); 528 528 529 // For drafts use the GMT version of the date530 if ( $page->post_status == 'draft' ) {531 $page_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $page->post_date ), 'Ymd\TH:i:s' );532 }533 534 529 // Pull the categories info together. 535 530 $categories = array(); … … 796 791 post_parent page_parent_id, 797 792 post_date_gmt, 798 post_date, 799 post_status 793 post_date 800 794 FROM {$wpdb->posts} 801 795 WHERE post_type = 'page' … … 812 806 $page_list[$i]->date_created_gmt = new IXR_Date($post_date_gmt); 813 807 814 // For drafts use the GMT version of the date815 if ( $page_list[$i]->post_status == 'draft' ) {816 $page_list[$i]->date_created_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $page_list[$i]->post_date ), 'Ymd\TH:i:s' );817 $page_list[$i]->date_created_gmt = new IXR_Date( $page_list[$i]->date_created_gmt );818 }819 820 808 unset($page_list[$i]->post_date_gmt); 821 809 unset($page_list[$i]->post_date); 822 unset($page_list[$i]->post_status);823 810 } 824 811 … … 2590 2577 // For drafts use the GMT version of the post date 2591 2578 if ( $postdata['post_status'] == 'draft' ) { 2592 $post_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $postdata['post_date'] ), 'Ymd\TH:i:s' ); 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 ); 2593 2582 } 2594 2583 … … 2709 2698 $post_date_gmt = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt'], false); 2710 2699 2711 // For drafts use the GMT version of the date2712 if ( $entry['post_status'] == 'draft' ) {2713 $post_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $entry['post_date'] ), 'Ymd\TH:i:s' );2714 }2715 2716 2700 $categories = array(); 2717 2701 $catids = wp_get_post_categories($entry['ID']); … … 2948 2932 $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date'], false); 2949 2933 $post_date_gmt = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt'], false); 2950 2951 // For drafts use the GMT version of the date2952 if ( $entry['post_status'] == 'draft' ) {2953 $post_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $entry['post_date'] ), 'Ymd\TH:i:s' );2954 }2955 2934 2956 2935 $struct[] = array(
Note: See TracChangeset
for help on using the changeset viewer.