#40557 closed defect (bug) (wontfix)
Simplify wp_die calls
Reported by: | Presskopp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 4.7.4 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
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
@
7 years ago
- Severity changed from normal to minor
I see that we shouldn't patch things like that just because we can. Feel free to close.
#4
@
7 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to 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.
7 years ago
Note: See
TracTickets for help on using
tickets.
Oh, in case I am right with this, there are some more:
functions.php, L. 1225
ms-load.php, L. 93, 114: