[wp-trac] [WordPress Trac] #24153: Sticky flag gets unset if author doesn't have publish_posts permission

WordPress Trac noreply at wordpress.org
Mon May 25 00:23:47 UTC 2015


#24153: Sticky flag gets unset if author doesn't have publish_posts permission
-----------------------------+-----------------------------
 Reporter:  archon810        |       Owner:  chriscct7
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  4.3
Component:  Role/Capability  |     Version:  3.5
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  administration
-----------------------------+-----------------------------

Comment (by obenland):

 Replying to [comment:11 chriscct7]:
 > how about
 > {{{
 > current_user_can( $ptype->cap->publish_posts ) && current_user_can(
 $ptype->cap->edit_others_posts)
 > }}}
 > then?

 Would that fix it for the scenario outlined in the ticket description?

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


More information about the wp-trac mailing list