| 1 | Index: wp-includes/functions.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/functions.php (revision 7326) |
|---|
| 4 | +++ wp-includes/functions.php (working copy) |
|---|
| 5 | @@ -1336,14 +1336,11 @@ |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | function wp_nonce_ays( $action ) { |
|---|
| 9 | - global $pagenow; |
|---|
| 10 | $title = __( 'WordPress Failure Notice' ); |
|---|
| 11 | - $html .= "\t<div id='message' class='updated fade'>\n\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t<p>"; |
|---|
| 12 | + $html = wp_specialchars( wp_explain_nonce( $action ) ) . '</p>'; |
|---|
| 13 | if ( wp_get_referer() ) |
|---|
| 14 | - $html .= "<a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>"; |
|---|
| 15 | - $html .= "</p>\n\t</div>\n"; |
|---|
| 16 | - $html .= "</body>\n</html>"; |
|---|
| 17 | - wp_die( $html, $title ); |
|---|
| 18 | + $html .= "<p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>"; |
|---|
| 19 | + wp_die( $html, $title); |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | |
|---|