# WP-Discourse and "Quick Draft"

**URL:** https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865
**Category:** WordPress
**Created:** [May 31, 2018, 7:00pm UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865 "2018-05-31T19:00:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Speck\_of\_the\_Cosmos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/speck_of_the_cosmos/32/119544_2.png) [@Speck\_of\_the\_Cosmos](https://meta.discourse.org/u/Speck_of_the_Cosmos)
#### Post date: [May 31, 2018, 7:00pm UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/1 "2018-05-31T19:00:53Z")

</div>

I have a wordpress user who has latched onto the Quick Draft in the Dashboard, but when she makes a quick draft and then goes back later to edit it, the post to Discourse checkbox isn’t checked and the category isn’t chosen. Is there any way to set the default for quick drafts to honor the settings for new posts?

Thanks 🙂

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 31, 2018, 7:11pm UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/2 "2018-05-31T19:11:03Z")

</div>

Yes, I can reproduce that. I would expect the publish category to be set to the Default Discourse Category and the Publish to Discourse checkbox to be checked if the Auto Publish setting has been enabled. This is the way it works when a regular draft is created. I’ll see what’s going on with quick drafts.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 31, 2018, 8:29pm UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/3 "2018-05-31T20:29:06Z")

</div>

Thanks for reporting this! The issue is that the code that sets the Publish category and Publish to Discourse metadata for a post isn’t run when a Quick Draft is saved. There will be a fix for this in the next update of the plugin. It will be available in the WordPress repo early next week. When a Quick Draft is saved, the Publish to Discourse status will be set to true if the Auto Publish setting is enabled, the publish category will be set from the Default Discourse Category setting.

---

<div class="post-metadata">

### Author: ![Speck\_of\_the\_Cosmos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/speck_of_the_cosmos/32/119544_2.png) [@Speck\_of\_the\_Cosmos](https://meta.discourse.org/u/Speck_of_the_Cosmos)
#### Post date: [May 31, 2018, 8:53pm UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/4 "2018-05-31T20:53:16Z")

</div>

Awesome! Thanks for the quick fix.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [June 28, 2018, 2:24am UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/5 "2018-06-28T02:24:48Z")

</div>

This should be working now in the latest release of the plugin (version 1.6.6.)

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [November 23, 2018, 11:43pm UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/6 "2018-11-23T23:43:32Z")

</div>

I’m wondering about a similar issue. We have drafts that were created prior to the WP-Discourse plugin being installed. Upon editing these posts, they do not have the expected default settings wrt Discourse.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [November 24, 2018, 1:59am UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/7 "2018-11-24T01:59:29Z")

</div>

That’s because for existing drafts the posts and their options have already been set. Defaults will only apply to posts created thereafter. WP-Discourse can’t differentiate between posts where options weren’t explicitly set, vs posts created and the options disabled. It’s the difference between setting a default vs overriding for all posts (and understanding the consequences/edge cases where this might be undesirable).

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [November 24, 2018, 2:24am UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/8 "2018-11-24T02:24:41Z")

</div>

I would expect there to be a difference between null and false.

Besides, the option is _not_ set to the wrong category already, but one is chosen seemingly at random upon opening that draft.

Not a big deal, but I wanted to mention it.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [November 24, 2018, 3:11am UTC](https://meta.discourse.org/t/wp-discourse-and-quick-draft/88865/9 "2018-11-24T03:11:04Z")

</div>

> [@jtbayly](#):
>
> Besides, the option is _not_ set to the wrong category already, but one is chosen seemingly at random upon opening that draft.

Yeah, I can see what’s happening now. The plugin assumes that if a draft has been saved, that it was saved with the [WP Discourse](https://github.com/discourse/wp-discourse) plugin activated. If the plugin wasn’t activated when the draft was saved, the default category won’t be selected from the category dropdown. I can fix that.
