From 888310cbbc234795afe6027d6b3eac4496683bf2 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 1 Dec 2009 21:21:31 +0000 Subject: [PATCH] Fix wp_nonce_ays() for log-out case. Fix IE6 padding. Props miqrogroove. fixes #11289 git-svn-id: http://svn.automattic.com/wordpress/trunk@12309 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ) : ?> -