[wp-trac] [WordPress Trac] #37616: Replace `is_super_admin()` calls with real capability checks
WordPress Trac
noreply at wordpress.org
Fri Aug 19 06:34:19 UTC 2016
#37616: Replace `is_super_admin()` calls with real capability checks
-----------------------------+------------------------
Reporter: flixos90 | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 4.7
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: | Focuses: multisite
-----------------------------+------------------------
Comment (by jeremyfelt):
Replying to [ticket:37616 flixos90]:
> While a super admin should have access to all capabilities, we should
get rid of all is_super_admin() checks that happen outside of WP_User and
the map_meta_cap() function
I think this is the perfect way to phrase it. :)
> The hardest part of this ticket will probably be finding names for the
new capabilities. The good thing is that we most likely won't need to
touch any roles or adjust `map_meta_cap()` since the new capabilities
should only be granted to the super admin for now anyway.
We'll probably figure out a strategy as we get started, but my first guess
is that we'd want to create new tickets for each new capability introduced
and then use that ticket to decide on the name and make all of the related
replacements.
Thanks for the list @Presskopp!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37616#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list