#40557 closed defect (bug) (wontfix)
Simplify wp_die calls
| Reported by: | Presskopp | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 4.7.4 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In \src\wp-admin\network\sites.php, L. 126 there's
wp_die( __( 'Sorry, you are not allowed to access this page.' ), '', array( 'response' => 403 ) );
This can be simplified to:
wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
Attachments (2)
Change History (7)
#3
@
9 years ago
- Severity normal → minor
I see that we shouldn't patch things like that just because we can. Feel free to close.
#4
@
9 years ago
- Milestone Awaiting Review
- Resolution → wontfix
- Status new → closed
Thanks for the patch, @Presskopp, but yes I don't think this is an essential change.
This ticket was mentioned in Slack in #core by presskopp. View the logs.
8 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Oh, in case I am right with this, there are some more:
functions.php, L. 1225
ms-load.php, L. 93, 114: