Changeset 19883
- Timestamp:
- 02/08/2012 11:25:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r19879 r19883 3393 3393 $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date'], false); 3394 3394 $post_date_gmt = mysql2date('Ymd\TH:i:s', $postdata['post_date_gmt'], false); 3395 $post_modified = mysql2date('Ymd\TH:i:s', $postdata['post_modified'], false); 3396 $post_modified_gmt = mysql2date('Ymd\TH:i:s', $postdata['post_modified_gmt'], false); 3395 3397 3396 3398 // For drafts use the GMT version of the post date 3397 if ( $postdata['post_status'] == 'draft' ) 3399 if ( $postdata['post_status'] == 'draft' ) { 3398 3400 $post_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $postdata['post_date'] ), 'Ymd\TH:i:s' ); 3401 $post_modified_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $postdata['post_modified'] ), 'Ymd\TH:i:s' ); 3402 } 3399 3403 3400 3404 $categories = array(); … … 3472 3476 'custom_fields' => $this->get_custom_fields($post_ID), 3473 3477 'wp_post_format' => $post_format, 3474 'sticky' => $sticky 3478 'sticky' => $sticky, 3479 'date_modified' => new IXR_Date( $post_modified ), 3480 'date_modified_gmt' => new IXR_Date( $post_modified_gmt ) 3475 3481 ); 3476 3482 … … 3519 3525 $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date'], false); 3520 3526 $post_date_gmt = mysql2date('Ymd\TH:i:s', $entry['post_date_gmt'], false); 3527 $post_modified = mysql2date('Ymd\TH:i:s', $entry['post_modified'], false); 3528 $post_modified_gmt = mysql2date('Ymd\TH:i:s', $entry['post_modified_gmt'], false); 3521 3529 3522 3530 // For drafts use the GMT version of the date 3523 if ( $entry['post_status'] == 'draft' ) 3531 if ( $entry['post_status'] == 'draft' ) { 3524 3532 $post_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $entry['post_date'] ), 'Ymd\TH:i:s' ); 3533 $post_modified_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $entry['post_modified'] ), 'Ymd\TH:i:s' ); 3534 } 3525 3535 3526 3536 $categories = array(); … … 3581 3591 'post_status' => $entry['post_status'], 3582 3592 'custom_fields' => $this->get_custom_fields($entry['ID']), 3583 'wp_post_format' => $post_format 3593 'wp_post_format' => $post_format, 3594 'date_modified' => new IXR_Date( $post_modified ), 3595 'date_modified_gmt' => new IXR_Date( $post_modified_gmt ) 3584 3596 ); 3585 3597
Note: See TracChangeset
for help on using the changeset viewer.