[wp-trac] [WordPress Trac] #28601: wp.newPost fatals when a post_date field is included in the data

WordPress Trac noreply at wordpress.org
Fri Jul 4 13:46:04 UTC 2014


#28601: wp.newPost fatals when a post_date field is included in the data
------------------------------+-----------------------------
 Reporter:  dllh              |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  4.0
Component:  XML-RPC           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by westi):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 While this fix introduces some consistency is also breaks some clients.


 Previously this worked fine:
 {{{
 <member><name>post_date_gmt</name><value><dateTime.iso8601>20140630T08:46:25</dateTime.iso8601></value></member>
 }}}

 This gets parsed into an IXR_Date and then we try and treat is as a string
 :(

 I think we need to make new and edit post accept both dateTime.iso8601 in
 the structs and dates as strings.

 The get function will return dateTime.iso8601 which make a strong ease of
 use argument for supporting it in the other methods.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28601#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list