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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-09-18 18:10:16 +00:00
parent 4fe649501d
commit 06d0270928
1 changed files with 2 additions and 2 deletions

View File

@ -522,8 +522,8 @@ class wp_xmlrpc_server extends IXR_Server {
// Do some timestamp voodoo // Do some timestamp voodoo
$dateCreatedd = $content_struct['dateCreated']; $dateCreatedd = $content_struct['dateCreated'];
$dateCreated = $dateCreatedd->getIso();
if (!empty($dateCreated)) { if (!empty($dateCreated)) {
$dateCreated = $dateCreatedd->getIso();
$post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
$post_date_gmt = iso8601_to_datetime($dateCreated, GMT); $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
} else { } else {
@ -612,8 +612,8 @@ class wp_xmlrpc_server extends IXR_Server {
// Do some timestamp voodoo // Do some timestamp voodoo
$dateCreated = $content_struct['dateCreated']; $dateCreated = $content_struct['dateCreated'];
$dateCreated = $dateCreated->getIso();
if (!empty($dateCreated)) { if (!empty($dateCreated)) {
$dateCreated = $dateCreatedd->getIso();
$post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated)); $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
$post_date_gmt = iso8601_to_datetime($dateCreated, GMT); $post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
} else { } else {