Changes from branches/4.4/src/wp-includes/class-wp-xmlrpc-server.php at r36164 to trunk/src/wp-includes/class-wp-xmlrpc-server.php at r35479
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r36164 r35479 1350 1350 1351 1351 if ( ! empty( $dateCreated ) ) { 1352 $post_data['post_date'] = get_date_from_gmt( iso8601_to_datetime( $dateCreated ));1353 $post_data['post_date_gmt'] = iso8601_to_datetime( $dateCreated, 'GMT');1352 $post_data['post_date'] = iso8601_to_datetime( $dateCreated ); 1353 $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] ); 1354 1354 } 1355 1355 … … 3424 3424 // We know this is supposed to be GMT, so we're going to slap that Z on there by force 3425 3425 $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; 3426 $comment_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));3427 $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');3426 $comment_date = iso8601_to_datetime( $dateCreated ); 3427 $comment_date_gmt = get_gmt_from_date( $comment_date ); 3428 3428 } 3429 3429 … … 4992 4992 4993 4993 if ( !empty( $dateCreated ) ) { 4994 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));4995 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');4994 $post_date = iso8601_to_datetime( $dateCreated ); 4995 $post_date_gmt = get_gmt_from_date( $post_date ); 4996 4996 } else { 4997 4997 $post_date = ''; … … 5346 5346 5347 5347 if ( !empty( $dateCreated ) ) { 5348 $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));5349 $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');5348 $post_date = iso8601_to_datetime( $dateCreated ); 5349 $post_date_gmt = get_gmt_from_date( $post_date, 'GMT' ); 5350 5350 } else { 5351 5351 $post_date = $postdata['post_date'];
Note: See TracChangeset
for help on using the changeset viewer.