[wp-trac] [WordPress Trac] #37616: Replace `is_super_admin()` calls with real capability checks

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


#37616: Replace `is_super_admin()` calls with real capability checks
-----------------------------+------------------------
 Reporter:  flixos90         |       Owner:
     Type:  task (blessed)   |      Status:  reviewing
 Priority:  normal           |   Milestone:  4.8
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  multisite
-----------------------------+------------------------

Comment (by flixos90):

 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/37616#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list