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

WordPress Trac noreply at wordpress.org
Mon Jul 6 22:41:01 UTC 2015


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

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33096"]:
 {{{
 #!CommitTicketReference repository="" revision="33096"
 Check for all required caps before (un)sticking a post.

 In cases where a user has the `edit_others_posts` capability but not
 `publish_posts`, it was possible for that user to unstick a post after
 editing,
 since the input field was never made available in that context.

 Props ericmann, chriscct7.
 Fixes #24153.
 }}}

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


More information about the wp-trac mailing list