From f704e592a9ef617ea696cfe7790cb6b146d13751 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 19 Mar 2008 06:04:45 +0000 Subject: [PATCH] wp_nonce_ays() HTML fixes from DD32. fixes #6270 git-svn-id: http://svn.automattic.com/wordpress/trunk@7395 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index fd7a5a854e..13dbb47f30 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1337,14 +1337,11 @@ function wp_explain_nonce( $action ) { function wp_nonce_ays( $action ) { - global $pagenow; $title = __( 'WordPress Failure Notice' ); - $html .= "\t
\n\t

" . wp_specialchars( wp_explain_nonce( $action ) ) . "

\n\t

"; + $html = wp_specialchars( wp_explain_nonce( $action ) ) . '

'; if ( wp_get_referer() ) - $html .= "" . __( 'Please try again.' ) . ""; - $html .= "

\n\t
\n"; - $html .= "\n"; - wp_die( $html, $title ); + $html .= "

" . __( 'Please try again.' ) . ""; + wp_die( $html, $title); }