Make WordPress Core


Ignore:
Timestamp:
03/19/2008 06:04:45 AM (17 years ago)
Author:
markjaquith
Message:

wp_nonce_ays() HTML fixes from DD32. fixes #6270

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r7377 r7395  
    13381338
    13391339function wp_nonce_ays( $action ) {
    1340     global $pagenow;
    13411340    $title = __( 'WordPress Failure Notice' );
    1342     $html .= "\t<div id='message' class='updated fade'>\n\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t<p>";
     1341    $html = wp_specialchars( wp_explain_nonce( $action ) ) . '</p>';
    13431342    if ( wp_get_referer() )
    1344         $html .= "<a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
    1345     $html .= "</p>\n\t</div>\n";
    1346     $html .= "</body>\n</html>";
    1347     wp_die( $html, $title );
     1343        $html .= "<p><a href='" . remove_query_arg( 'updated', clean_url( wp_get_referer() ) ) . "'>" . __( 'Please try again.' ) . "</a>";
     1344    wp_die( $html, $title);
    13481345}
    13491346
Note: See TracChangeset for help on using the changeset viewer.