Proper HTML for wp_nonce_ays

git-svn-id: http://svn.automattic.com/wordpress/trunk@8972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2008-09-25 05:13:53 +00:00
parent afc5c225f3
commit 78f973ad2c
1 changed files with 2 additions and 2 deletions

View File

@ -2231,9 +2231,9 @@ function wp_explain_nonce( $action ) {
*/ */
function wp_nonce_ays( $action ) { function wp_nonce_ays( $action ) {
$title = __( 'WordPress Failure Notice' ); $title = __( 'WordPress Failure Notice' );
$html = wp_specialchars( wp_explain_nonce( $action ) ) . '</p>'; $html = wp_specialchars( wp_explain_nonce( $action ) );
if ( wp_get_referer() ) if ( wp_get_referer() )
$html .= "<p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>"; $html .= "</p><p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
wp_die( $html, $title); wp_die( $html, $title);
} }