[wp-trac] [WordPress Trac] #40557: Simplify wp_die calls (was: Simplify wp_die call in sites.php)
WordPress Trac
noreply at wordpress.org
Thu Apr 27 00:29:13 UTC 2017
#40557: Simplify wp_die calls
--------------------------+------------------------------
Reporter: Presskopp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by Presskopp):
Oh, in case I am right with this, there are some more:
functions.php, L. 1225
{{{
wp_die( __( 'ERROR: This is not a valid feed template.' ), '', array(
'response' => 404 ) );
}}}
ms-load.php, L. 93, 114:
{{{
wp_die( __( 'This site is no longer available.' ), '', array( 'response'
=> 410 ) );
wp_die( __( 'This site has been archived or suspended.' ), '', array(
'response' => 410 ) );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40557#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list