Opened 12 years ago
Closed 12 years ago
#26057 closed defect (bug) (fixed)
Remove redundant current_user_can() check in site-new.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.8 | Priority: | normal |
| Severity: | normal | Version: | 3.1 |
| Component: | Network Admin | Keywords: | has-patch |
| Focuses: | multisite | Cc: |
Description
When site-new.php was created in [15886], a current_user_can( 'manage_sites' ) was moved over from the add-blog case in edit.php and a new check was added at the top of the file. The check inside the add-blog action is not required anymore as it will never be false.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 26236: