[wp-trac] [WordPress Trac] #36056: When saving a post for an other author, the current_user_can() check is not passing the post ID with the edit_others_posts capability

WordPress Trac noreply at wordpress.org
Thu Mar 3 08:33:15 UTC 2016


#36056: When saving a post for an other author, the current_user_can() check is not
passing the post ID with the edit_others_posts capability
-----------------------------+------------------------------
 Reporter:  GunGeekATX       |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  4.4.2
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by ericlewis):

 > Giving the role the edit_others_pages capability also fixes the issue.

 I think this is a good way to go.

 The `edit_others_pages` cap is intended as a generic capability to see
 whether a user can, at all, edit other author's pages. It seems this is a
 capability you want this role to have.

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


More information about the wp-trac mailing list