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:
parent
8336de2780
commit
2f943e7cc5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user