[wp-trac] [WordPress Trac] #33240: Introduce a capability for previewing posts

WordPress Trac noreply at wordpress.org
Sat Aug 8 18:11:22 UTC 2015

#33240: Introduce a capability for previewing posts
 Reporter:  johnbillion                          |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Role/Capability                      |  Review
 Severity:  normal                               |     Version:
 Keywords:  needs-patch needs-unit-tests dev-    |  Resolution:
  feedback                                       |     Focuses:
                                                 |  administration

Comment (by DrewAPicture):

 Replying to [comment:1 morganestes]:
 > I think this could definitely be useful, especially with publishing
 shops that may not want to rely on a plugin for their editorial flow.
 > For implementation, would this be a checkbox on the user's profile page
 that is set by someone with a specific (filterable) capability (read-only
 for everyone else, maybe?) or would it be enabled through a hook, or some
 other way I haven't thought of?

 I think the most elegant way to do it would be to just give it to users
 who current have `edit_posts` by default, along the lines of the sub-cap
 concept (see the `customize` cap), thereby making it possible to
 programmatically remove the cap rather than add it.

Ticket URL: <https://core.trac.wordpress.org/ticket/33240#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list