Make WordPress Core


Ignore:
Timestamp:
11/16/2014 06:15:29 AM (10 years ago)
Author:
johnbillion
Message:

Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors.

Fixes #10551
Props nacin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r30355 r30356  
    23132313 */
    23142314function wp_nonce_ays( $action ) {
    2315     $title = __( 'WordPress Failure Notice' );
    23162315    if ( 'log-out' == $action ) {
    23172316        $html = sprintf( __( 'You are attempting to log out of %s' ), get_bloginfo( 'name' ) ) . '</p><p>';
     
    23242323    }
    23252324
    2326     wp_die( $html, $title, array('response' => 403) );
     2325    wp_die( $html, __( 'WordPress Failure Notice' ), 403 );
    23272326}
    23282327
Note: See TracChangeset for help on using the changeset viewer.