letrunghieu / wordpress-xmlrpc-client

A PHP XML-RPC client for Wordpress websites
MIT License
117 stars 42 forks source link

Post_date && Any Other Date Values in private function _sendRequest #2

Closed scopefragger closed 10 years ago

scopefragger commented 10 years ago

private function _sendRequest are passed as strings and not defined as a date, WP will not accept these!

Our Temp fix was xmlrpc_set_type($params[3]['post_date'],'datetime');

letrunghieu commented 10 years ago

Thank you, I will review all Wordpress XML-RPC API and check the datetime parameters in this week.

letrunghieu commented 10 years ago

I have released 2.2.1 patch to enable auto detect date time object. You can composer update now and use instances of DateTime class instead of strings for these value.

scopefragger commented 10 years ago

Brilliant

-Mark