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

WordPress Trac noreply at wordpress.org
Tue Apr 12 10:30:16 UTC 2016


#36492: Add `WP_Post_Status` class
-------------------------------+-----------------------------
 Reporter:  flixos90           |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  3.0
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Similar to #36217 and #36224, a dedicated class for post statuses would
 make it easier to work with those as they are currently represented
 through raw objects.

 The global variable `$wp_post_statuses` would then hold objects of
 `WP_Post_Status` which would provide the benefits of autocompletion in
 IDEs, and we could possibly add methods to the class in the future to make
 post status management easier.

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


More information about the wp-trac mailing list