Proper HTML for wp_nonce_ays

git-svn-id: https://develop.svn.wordpress.org/trunk@8972 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-09-25 05:13:53 +00:00
parent 8336de2780
commit 2f943e7cc5
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 ) {
$title = __( 'WordPress Failure Notice' );
$html = wp_specialchars( wp_explain_nonce( $action ) ) . '</p>';
$html = wp_specialchars( wp_explain_nonce( $action ) );
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);
}