Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1820 closed enhancement (fixed)

ability to save pages as draft

Reported by: nilsjeppe's profile nilsjeppe Owned by: ryan's profile ryan
Milestone: 2.1 Priority: low
Severity: normal Version: 2.0
Component: General Keywords: pages draft bg|has-patch bg|squashed
Focuses: 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 19 years ago.
save_pages_as_draft.2.diff (12.0 KB) - added by davidhouse 19 years ago.

Download all attachments as: .zip

Change History (13)

#1 @error
19 years ago

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.

#2 @markjaquith
19 years ago

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.

#3 @davidhouse
19 years ago

  • 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.

#4 @davidhouse
19 years ago

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.

#5 @davidhouse
19 years ago

  • Keywords bg|squashed removed

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

#6 @davidhouse
19 years ago

  • Keywords bg|squashed added

New patch. Problems fixed. World hunger solved.

#7 @ryan
19 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.

#8 @ryan
19 years ago

  • Milestone set to 2.1

#9 @doc
19 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

#10 @ryan
19 years ago

  • Owner changed from davidhouse to ryan
  • Status changed from assigned to new

#11 @ryan
19 years ago

  • 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.