[wp-trac] [WordPress Trac] #36492: Add `WP_Post_Status` class

WordPress Trac noreply at wordpress.org
Sat Sep 3 13:25:51 UTC 2016


#36492: Add `WP_Post_Status` class
------------------------------------+------------------------------
 Reporter:  flixos90                |       Owner:
     Type:  enhancement             |      Status:  reviewing
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Posts, Post Types       |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by GaryJ):

 > Was there any consideration for implementing post statuses as an actual
 "enumerated" (or "enum") data type (or at least a PHP simulation thereof)?

 An enumerated list wouldn't allow much in the way of custom statuses.

 > and what abilities a status should have

 This is crying out for an interface to be created first, so that each
 `WP_*_Status`, including `WP_Post_Status` can implement it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36492#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list