[wp-trac] [WordPress Trac] #16985: XML-RPC endpoint set the datetime when saving a Draft
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 30 15:37:41 UTC 2011
#16985: XML-RPC endpoint set the datetime when saving a Draft
------------------------------+------------------------------
Reporter: daniloercoli | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.1
Severity: normal | Resolution:
Keywords: mobile has-patch |
------------------------------+------------------------------
Comment (by daniloercoli):
I attached a patch that set $post_date_gmt to 0000-00-00 00:00:00 in
wp_inset_post when no date_time_gmt is passed within the request.
The patch always returns the parameter date_created_gmt set to
'19700101T00:00:00' for draft posts that have the date_created_gmt field
set to 0000-00-00 00:00:00. EX:
<member><name>date_created_gmt</name><value><dateTime.iso8601>19700101T00:00:00</dateTime.iso8601></value></member>
This should prevent crashes on external clients.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16985#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list