[wp-trac] [WordPress Trac] #35874: XMLRPC: Draft posts are published immediately when changed to published and future-dated at once

WordPress Trac noreply at wordpress.org
Tue Mar 22 15:09:07 UTC 2016


#35874: XMLRPC: Draft posts are published immediately when changed to published and
future-dated at once
---------------------------------------------+--------------------------
 Reporter:  redsweater                       |       Owner:  rachelbaker
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.5
Component:  XML-RPC                          |     Version:  4.4
 Severity:  major                            |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------
Changes (by rachelbaker):

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


Comment:

 In [changeset:"37043"]:
 {{{
 #!CommitTicketReference repository="" revision="37043"
 XMLRPC: Fix bug where draft posts couldn’t be published in the future, and
 would publish immediately.

 Resolves bug introduced in [r34572], in which editing a Post via the
 XMLRPC API with a draft post_status, where the post_status changes from
 draft->publish with a future post_date set for the publish action, will
 have the future post_date disregarded and the Post will be published
 immediately. The expected behavior is that the post_date is used to
 schedule the Post to be published in the future.

 Fixes #35874.

 Props redsweater, rachelbaker, DrewAPicture
 }}}

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


More information about the wp-trac mailing list