Opened 8 years ago

Closed 7 years ago

#1820 closed enhancement (fixed)

ability to save pages as draft

Reported by: nilsjeppe Owned by: ryan
Priority: low Milestone: 2.1
Component: General Version: 2.0
Severity: normal Keywords: pages draft bg|has-patch bg|squashed
Cc:

Description

Please add the ability to save pages as "draft", similar to posts. Oftentimes, I will want to start writing a page, but have not enough time to complete it right away.

Attachments (2)

save_pages_as_draft.diff (10.3 KB) - added by davidhouse 8 years ago.
save_pages_as_draft.2.diff (12.0 KB) - added by davidhouse 8 years ago.

Download all attachments as: .zip

Change History (13)

I've worked around this by password protecting the page before it's ready, and also modifying the editing form so I could edit the timestamp and "future publish" the page, but this really needs looking at.

I still think the best approach is a unified posting screen, maybe with a "post/page" switch, where the only difference is the category/page_parent swap.

  • Keywords pages draft bg|has-patch bg|squashed added
  • Owner changed from anonymous to davidhouse
  • Status changed from new to assigned

I agree that a unified posting screen would be ideal, but that will take a lot more discussion and planning. In the interim, here's an attachment that allows you to save a page as a draft.

Oh, and it requires a DB change so don't forget to run upgrade.php. Commitors: I haven't done anything about changing the DB version in this patch (couldn't find where to do it), so if you're committing this patch and it requires a change, could you do that for me? Thanks.

  • Keywords bg|squashed removed

Don't commit that patch, I've found and are fixing some problems with it.

  • Keywords bg|squashed added

New patch. Problems fixed. World hunger solved.

comment:7   ryan8 years ago

We're going to fix this more thoroughly in a future release. Instead of overloading post_status, a post_type field will be added. post_type can be post, page, or attachment. post_status will be publish, private, and draft.

comment:8   ryan8 years ago

  • Milestone set to 2.1

comment:9   doc7 years ago

  • Version changed from 1.5.2 to 2.0

This is fantastic news. I raised this in a seperate ticket at the first of the year...

http://trac.wordpress.org/ticket/2194

  • Owner changed from davidhouse to ryan
  • Status changed from assigned to new
  • Resolution set to fixed
  • Status changed from new to closed

(In [3510]) Allow draft pages. Use post_type for object types. Reserve post_status strictly for status. fixes #1820

Note: See TracTickets for help on using tickets.