[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 03:59:55 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 chriscct7):

 Replying to [comment:13 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?

 Yes because the updated patch does not allow the stickiness status to be
 updated without both caps.

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


More information about the wp-trac mailing list