[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 8 20:37:53 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:  assigned
 Priority:  normal                    |   Milestone:  4.5
Component:  XML-RPC                   |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by redsweater):

 @rachelbaker To underscore why it's probably most appropriate to fix the
 bug in wp_insert_post, consider that at least by the
 contract/documentation of wp_insert_post, post_date is a primary, expected
 parameter to the function. I think that's shifting over time since the
 XMLRPC API is favoring use of post_date_gmt, but unless we want to
 document away the validity of passing post_date to wp_insert_post, I think
 it should be safeguarded within the function.

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


More information about the wp-trac mailing list