[wp-trac] [WordPress Trac] #39059: Remove unnecessary `is_super_admin()` checks for editing others posts

WordPress Trac noreply at wordpress.org
Wed Dec 7 22:08:54 UTC 2016


#39059: Remove unnecessary `is_super_admin()` checks for editing others posts
-----------------------------+------------------------
 Reporter:  flixos90         |       Owner:  flixos90
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  4.8
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:  multisite
-----------------------------+------------------------
Changes (by flixos90):

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


Comment:

 In [changeset:"39539"]:
 {{{
 #!CommitTicketReference repository="" revision="39539"
 Multisite: Remove redundant `is_super_admin()` when checking for
 `edit_others_posts`.

 The super admin on multisite as well as the administrator on non-multisite
 both have this capability already. For custom post types using different
 capabilities this change ensures that only users with that capability have
 permissions.

 Fixes #39059. See #37616.
 }}}

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


More information about the wp-trac mailing list