Opened 13 years ago
Closed 13 years ago
#26057 closed defect (bug) (fixed)
Remove redundant current_user_can() check in site-new.php
| Reported by: | jeremyfelt | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.8 |
| Component: | Network Admin | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 26236: