WordPress.org

Make WordPress Core

Ticket #6612: xmlrpc.php.2.diff

File xmlrpc.php.2.diff, 2.1 KB (added by effectivemarketing, 6 years ago)

Patch to correct erroneous ->getIso() call.

Line 
11215c1215
2<                       $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt']->getIso() ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
3---
4>                       $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt'] ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
51217c1217
6<                       $comment_date_gmt = iso8601_to_datetime($dateCreated, GMT);
7---
8>                       $comment_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
92185c2185
10<                       $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt']->getIso() ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
11---
12>                       $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt'] ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
132187c2187
14<                       $dateCreated = $content_struct['dateCreated']->getIso();
15---
16>                       $dateCreated = $content_struct['dateCreated'];
172191c2191
18<                       $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
19---
20>                       $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
212502c2502
22<                       $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt']->getIso() ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
23---
24>                       $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt'] ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force
252504c2504
26<                       $dateCreated = $content_struct['dateCreated']->getIso();
27---
28>                       $dateCreated = $content_struct['dateCreated'];
292508c2508
30<                       $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
31---
32>                       $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');