Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21141 closed defect (bug) (duplicate)

Update Status Switches to use get_post_status_object()

Reported by: wpsmith's profile wpsmith Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

There are a couple places that contain switches for Post Statuses. These should be updated to use get_post_status_object() to enable more flexiblity and utilize the register_post_status() function of WordPress 3.0.

For example, in meta-boxes.php (wp-admin/includes), the status of a post/page/custom post type must be manipulated via jQuery when a status could simply be created and utilized within WordPress to use a new status like 'expired' or 'under-review'. Or consider a news company with edit revision cycles. These revisions don't appear unless there is a jquery hack in place.

Attachments (1)

post_status.patch (1.8 KB) - added by wpsmith 11 years ago.

Download all attachments as: .zip

Change History (3)

#1 @wpsmith
11 years ago

  • Keywords has-patch 2nd-opinion dev-feedback removed
  • Resolution set to duplicate
  • Status changed from new to closed

Related #12706

#2 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.