From 1b27039e8145331718335cfa20cbf1f6b93e260b Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 19 Mar 2008 06:04:45 +0000 Subject: [PATCH] wp_nonce_ays() HTML fixes from DD32. fixes #6270 git-svn-id: https://develop.svn.wordpress.org/trunk@7395 602fd350-edb4-49c9-b593-d223f7449a82 --- 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); }