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:
parent
4fe649501d
commit
06d0270928
|
@ -522,8 +522,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
|
||||
// Do some timestamp voodoo
|
||||
$dateCreatedd = $content_struct['dateCreated'];
|
||||
$dateCreated = $dateCreatedd->getIso();
|
||||
if (!empty($dateCreated)) {
|
||||
$dateCreated = $dateCreatedd->getIso();
|
||||
$post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
|
||||
$post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
|
||||
} else {
|
||||
|
@ -612,8 +612,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
|
||||
// Do some timestamp voodoo
|
||||
$dateCreated = $content_struct['dateCreated'];
|
||||
$dateCreated = $dateCreated->getIso();
|
||||
if (!empty($dateCreated)) {
|
||||
$dateCreated = $dateCreatedd->getIso();
|
||||
$post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
|
||||
$post_date_gmt = iso8601_to_datetime($dateCreated, GMT);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue