diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 18f3b7d35..bfd0a6dab 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2439,12 +2439,12 @@ function wp_explain_nonce( $action ) { function wp_nonce_ays( $action ) { $title = __( 'WordPress Failure Notice' ); $html = esc_html( wp_explain_nonce( $action ) ); - if ( wp_get_referer() ) - $html .= "

" . __( 'Please try again.' ) . ""; - elseif ( 'log-out' == $action ) + if ( 'log-out' == $action ) $html .= "

" . sprintf( __( "Do you really want to log out?"), wp_logout_url() ); + elseif ( wp_get_referer() ) + $html .= "

" . __( 'Please try again.' ) . ""; - wp_die( $html, $title); + wp_die( $html, $title, array('response' => 403) ); } /** @@ -2522,6 +2522,7 @@ function wp_die( $message, $title = '', $args = array() ) { if ( ( $wp_locale ) && ( 'rtl' == $wp_locale->text_direction ) ) $text_direction = 'rtl'; ?> + > @@ -2536,7 +2537,6 @@ if ( 'rtl' == $text_direction ) : ?> -