Make WordPress Core

Changeset 1693 for trunk/xmlrpc.php


Ignore:
Timestamp:
09/18/2004 06:10:16 PM (20 years ago)
Author:
michelvaldrighi
Message:

I was stupidly parsing dateCreated even when it was empty -- hence the crash in mw_newPost

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r1692 r1693  
    523523      // Do some timestamp voodoo
    524524      $dateCreatedd = $content_struct['dateCreated'];
    525       $dateCreated = $dateCreatedd->getIso();
    526525      if (!empty($dateCreated)) {
     526        $dateCreated = $dateCreatedd->getIso();
    527527        $post_date     = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    528528        $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
     
    613613      // Do some timestamp voodoo
    614614      $dateCreated = $content_struct['dateCreated'];
    615       $dateCreated = $dateCreated->getIso();
    616615      if (!empty($dateCreated)) {
     616        $dateCreated = $dateCreatedd->getIso();
    617617        $post_date     = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    618618        $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
Note: See TracChangeset for help on using the changeset viewer.