Opened 8 years ago
Closed 8 years ago
#39220 closed enhancement (fixed)
Remove 1 `is_super_admin()` check in wp-admin/user-new.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Role/Capability | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
This is part of the #37616 task. when adding a network administrator who's already on the site, that user is still invited again
Attachments (2)
Change History (7)
#2
follow-up:
↓ 3
@
8 years ago
- Focuses multisite added
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to 4.8
- Owner set to flixos90
- Status changed from new to reviewing
- Summary changed from Remove 1 check in wp-admin/user-new.php to Remove 1 `is_super_admin()` check in wp-admin/user-new.php
#3
in reply to:
↑ 2
@
8 years ago
Replying to flixos90:
Hi @supercoder, and thanks for the ticket and patch! :)
Can you maybe have another look at the patch and review "Ticket 11" on https://core.trac.wordpress.org/ticket/37616#comment:26 in detail? In your patch you removed the
$username != null
check, but instead the!is_super_admin( $user_id )
check should be removed. You could also adjust the spacing in( array_key_exists($blog_id, get_blogs_of_user($user_id)) )
(same line) to follow the WordPress coding standards.
Thanks for the update. I have updated the patch. Please check.
Note: See
TracTickets for help on using
tickets.
Hi @supercoder, and thanks for the ticket and patch! :)
Can you maybe have another look at the patch and review "Ticket 11" on https://core.trac.wordpress.org/ticket/37616#comment:26 in detail? In your patch you removed the
$username != null
check, but instead the!is_super_admin( $user_id )
check should be removed. You could also adjust the spacing in( array_key_exists($blog_id, get_blogs_of_user($user_id)) )
(same line) to follow the WordPress coding standards.