Opened 10 years ago
Closed 10 years ago
#39220 closed enhancement (fixed)
Remove 1 `is_super_admin()` check in wp-admin/user-new.php
| Reported by: | supercoder | Owned by: | flixos90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.8 |
| Component: | Role/Capability | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
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
@
10 years ago
- Focuses multisite added
- Keywords needs-patch added; has-patch removed
- Milestone Awaiting Review → 4.8
- Owner set to
- Status new → reviewing
- Summary Remove 1 check in wp-admin/user-new.php → Remove 1 `is_super_admin()` check in wp-admin/user-new.php
#3
in reply to: ↑ 2
@
10 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 != nullcheck, 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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 != nullcheck, 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.