{"id":3132,"date":"2016-02-19T16:14:56","date_gmt":"2016-02-19T21:14:56","guid":{"rendered":"https:\/\/red-sweater.com\/blog\/?p=3132"},"modified":"2016-02-19T16:14:56","modified_gmt":"2016-02-19T21:14:56","slug":"prematurely-published-drafts","status":"publish","type":"post","link":"https:\/\/redsweater.com\/blog\/3132\/prematurely-published-drafts","title":{"rendered":"Prematurely Published Drafts"},"content":{"rendered":"<p>A WordPress bug was brought to my attention in which changing the publish status of a post from &#8220;Draft&#8221; to &#8220;Published&#8221;, while <em>also<\/em> giving the post a specific date, for example to schedule it for the future, would cause the post to be unexpectedly published immediately, instead of scheduled for the future date.<\/p>\n<p>I looked into this and discovered the problem is in WordPress&#8217;s server-side infrastructure. Specifically, there were changes late last year that expose clients such as MarsEdit to the problem. I <a href=\"https:\/\/core.trac.wordpress.org\/ticket\/35874\">submitted a fix<\/a> for the issue to the WordPress team. Hopefully they will review and agree that it merits including in a future update!<\/p>\n<p>In the mean time, if you use MarsEdit with WordPress, you should beware if you take advantage of <em>both<\/em> the ability to publish posts <em>as drafts<\/em> to WordPress, and the ability to later turn that draft into a scheduled post by setting a future date in MarsEdit.<\/p>\n<p>Unfortunately, the only reliable way I know to avoid this problem from MarsEdit is to give your draft post a date <em>before you ever send it to WordPress.<\/em> If a draft post starts out with a date specified, the bug will not occur on later edits to the post, for example when you switch the publish status to &#8220;Published.&#8221;<\/p>\n<p>I hope this bug is fixed in a public update to WordPress, soon!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A WordPress bug was brought to my attention in which changing the publish status of a post from &#8220;Draft&#8221; to &#8220;Published&#8221;, while also giving the post a specific date, for example to schedule it for the future, would cause the post to be unexpectedly published immediately, instead of scheduled for the future date. I looked [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,28],"tags":[],"class_list":["post-3132","post","type-post","status-publish","format-standard","hentry","category-marsedit","category-wordpress"],"_links":{"self":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/comments?post=3132"}],"version-history":[{"count":1,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3132\/revisions"}],"predecessor-version":[{"id":3133,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/posts\/3132\/revisions\/3133"}],"wp:attachment":[{"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/media?parent=3132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/categories?post=3132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redsweater.com\/blog\/wp-json\/wp\/v2\/tags?post=3132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}