WordPress.org

Make WordPress Core

Ticket #6270: nonce.diff

File nonce.diff, 935 bytes (added by DD32, 10 years ago)
  • wp-includes/functions.php

     
    13361336
    13371337
    13381338function wp_nonce_ays( $action ) {
    1339         global $pagenow;
    13401339        $title = __( 'WordPress Failure Notice' );
    1341         $html .= "\t<div id='message' class='updated fade'>\n\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t<p>";
     1340        $html = wp_specialchars( wp_explain_nonce( $action ) ) . '</p>';
    13421341        if ( wp_get_referer() )
    1343                 $html .= "<a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
    1344         $html .= "</p>\n\t</div>\n";
    1345         $html .= "</body>\n</html>";
    1346         wp_die( $html, $title );
     1342                $html .= "<p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
     1343        wp_die( $html, $title);
    13471344}
    13481345
    13491346