WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14318 closed defect (bug) (duplicate)

post_status API improvements

Reported by: filosofo Owned by: filosofo
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords: needs-patch
Focuses: Cc:

Description

There's an inchoate API, but:

  • It's not being used to generate the shown options when editing a particular post object
  • The API functions have copy-paste cruft, such as the "hierarchical" property for post_status
  • It would be reasonable to associate status types with particular object types, something you can't do currently.

One problem is that many status types are extensively hard-coded into WP.

Change History (3)

comment:1 follow-up: scribu4 years ago

One problem is that many status types are extensively hard-coded into WP.

Going slightly offtopic, I would like to point out that it's the same situation (maybe worse) for comment statuses.

comment:2 in reply to: ↑ 1 ptahdunbar4 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

This looks like a dup of #12706

comment:3 nacin4 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.