[wp-trac] [WordPress Trac] #12706: Custom post status bugs in the admin

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 12 19:57:57 UTC 2012


#12706: Custom post status bugs in the admin
-------------------------------------------------+-------------------------
 Reporter:  ptahdunbar                           |       Owner:  ptahdunbar
     Type:  feature request                      |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Post Types                           |  Release
 Severity:  normal                               |     Version:
 Keywords:  has-patch westi-likes needs-testing  |  Resolution:
  needs-refresh needs-unit-tests                 |
-------------------------------------------------+-------------------------

Comment (by kevinB):

 Replying to [comment:108 nacin]:
 >  * That capabilities.php is untouched in the latest patch is incredibly
 odd, to say the least. map_meta_cap() supports custom post types and needs
 to support custom statuses for both built-in and custom post types.

 The lack of change to function map_meta_cap() is explained by the patch's
 plugin roots.  It can be filtered to apply additional capability
 requirements based on $post->post_status (as demonstrated in the old
 status-helper.zip).  Maybe inelegant, but not '''that''' odd.

 >  * The "moderation" property is confusing and ill-defined.

 Call it what you want, the idea is to allow for multiple statuses between
 draft and published, rather than hard-coding 'pending'.  Each of those
 "moderation" statuses should have its own capability analogous to
 "publish_posts", as well as edit and delete caps.  API should also allow
 control of which status (i.e. "Reviewed", "Approved" or "Dissed") is set
 by the "Publish" button when the user cannot publish.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12706#comment:109>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list