[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
Fri Feb 19 20:27:51 UTC 2016
#35874: XMLRPC: Draft posts are published immediately when changed to published and
future-dated at once
--------------------------------------+------------------------------
Reporter: redsweater | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by redsweater):
* keywords: => has-patch has-unit-tests
Comment:
Although this bug affects XMLRPC (and probably REST API), the fix is
actually in another component (Posts?).
I'm attaching a patch for a fix and a patch for the tests to cover the
buggy behavior reported in this bug.
I was wrong about the code in wp_insert_post needing to be reworked to
address this bug. I have refactored that but will report it as a separate
ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35874#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list