Changeset 34681 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 09/29/2015 04:04:16 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r34603 r34681 1325 1325 1326 1326 if ( ! empty( $dateCreated ) ) { 1327 $post_data['post_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));1328 $post_data['post_date_gmt'] = iso8601_to_datetime( $dateCreated, 'GMT');1327 $post_data['post_date'] = iso8601_to_datetime( $dateCreated ); 1328 $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] ); 1329 1329 } 1330 1330 … … 3396 3396 // We know this is supposed to be GMT, so we're going to slap that Z on there by force 3397 3397 $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 3398 $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));3399 $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');3398 $comment_date = iso8601_to_datetime( $dateCreated ); 3399 $comment_date_gmt = get_gmt_from_date( $comment_date ); 3400 3400 } 3401 3401 … … 4961 4961 4962 4962 if ( !empty( $dateCreated ) ) { 4963 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));4964 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');4963 $post_date = iso8601_to_datetime( $dateCreated ); 4964 $post_date_gmt = get_gmt_from_date( $post_date ); 4965 4965 } else { 4966 4966 $post_date = ''; … … 5315 5315 5316 5316 if ( !empty( $dateCreated ) ) { 5317 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));5318 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');5317 $post_date = iso8601_to_datetime( $dateCreated ); 5318 $post_date_gmt = get_gmt_from_date( $post_date, 'GMT' ); 5319 5319 } else { 5320 5320 $post_date = $postdata['post_date'];
Note: See TracChangeset
for help on using the changeset viewer.