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); }