From b2faac7a2bd6fa4a06e29eb2b3453c7e888e9eb8 Mon Sep 17 00:00:00 2001
From: Ryan Boren
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: https://develop.svn.wordpress.org/trunk@12309 602fd350-edb4-49c9-b593-d223f7449a82
---
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 18f3b7d351..bfd0a6dabe 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 ) : ?>
-