wp_nonce_ays() HTML fixes from DD32. fixes #6270
git-svn-id: https://develop.svn.wordpress.org/trunk@7395 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9de58b184a
commit
1b27039e81
|
@ -1337,14 +1337,11 @@ function wp_explain_nonce( $action ) {
|
||||||
|
|
||||||
|
|
||||||
function wp_nonce_ays( $action ) {
|
function wp_nonce_ays( $action ) {
|
||||||
global $pagenow;
|
|
||||||
$title = __( 'WordPress Failure Notice' );
|
$title = __( 'WordPress Failure Notice' );
|
||||||
$html .= "\t<div id='message' class='updated fade'>\n\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t<p>";
|
$html = wp_specialchars( wp_explain_nonce( $action ) ) . '</p>';
|
||||||
if ( wp_get_referer() )
|
if ( wp_get_referer() )
|
||||||
$html .= "<a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
|
$html .= "<p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
|
||||||
$html .= "</p>\n\t</div>\n";
|
wp_die( $html, $title);
|
||||||
$html .= "</body>\n</html>";
|
|
||||||
wp_die( $html, $title );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue