[wp-trac] [WordPress Trac] #23174: Complete register_post_status() API

WordPress Trac noreply at wordpress.org
Thu Jan 10 19:07:41 UTC 2013


#23174: Complete register_post_status() API
-----------------------------+--------------------------
 Reporter:  danielbachhuber  |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 `register_post_status()`, introduced in r12719, isn't fully functional.
 Registering a custom post status produces incomplete and unexpected
 results. #12706 has been a long-standing ticket to fix things up but
 hasn't ever been committed, I suspect, because it's trying to do to much.

 Instead, we should complete the `register_post_status()` API with the bare
 minimum of code. A user should be able to register a custom post status
 using any of the existing arguments. The admin UI (including post submit
 box and quick edit) should reflect this new custom post status.
 Furthermore, there are many hard-coded references to 'draft' and 'pending'
 statuses in core that should properly use the post status API.

 Once we've knocked this out, enhancements like #23169, #23168, and others
 should be much easier to stomach.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23174>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list