[wp-trac] [WordPress Trac] #39212: Replace is_super_admin() check with current_user_can( 'manage_network_users' ) in wp-admin/includes/ms.php
WordPress Trac
noreply at wordpress.org
Fri Dec 9 17:00:50 UTC 2016
#39212: Replace is_super_admin() check with current_user_can(
'manage_network_users' ) in wp-admin/includes/ms.php
-------------------------------------+------------------------
Reporter: bhargavbhandari90 | Owner: flixos90
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.8
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses: multisite
-------------------------------------+------------------------
Comment (by bhargavbhandari90):
Replying to [comment:1 flixos90]:
> Thanks for the patch @bhargavbhandari90! It looks good so far, there are
only two small adjustments that should be made, which are both related to
coding standards:
>
> * insert a space between the `!` and `current_user_can(
'manage_network_users' )`
> * add curly braces around the clause (this is an acceptable change since
we are adjusting that code anyway)
Thanks for the update. I have created another patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39212#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list