WordPress.org

Make WordPress Core

Ticket #9650: 9650 .patch

File 9650 .patch, 3.6 KB (added by hakre, 5 years ago)

Akismet

  • wp-content/plugins/akismet/akismet.php

     
    505505        echo '<p>'.__('You can delete all of the spam from your database with a single click. This operation cannot be undone, so you may wish to check to ensure that no legitimate comments got through first. Spam is automatically deleted after 15 days, so don&#8217;t sweat it.').'</p>'; 
    506506?> 
    507507<?php if ( !isset( $_POST['s'] ) ) { ?> 
    508 <form method="post" action="<?php echo attribute_escape( add_query_arg( 'noheader', 'true' ) ); ?>"> 
     508<form method="post" action="<?php echo attr( add_query_arg( 'noheader', 'true' ) ); ?>"> 
    509509<?php akismet_nonce_field($akismet_nonce) ?> 
    510510<input type="hidden" name="action" value="delete" /> 
    511511<?php printf(__('There are currently %1$s comments identified as spam.'), $spam_count); ?>&nbsp; &nbsp; <input type="submit" class="button delete" name="Submit" value="<?php _e('Delete all'); ?>" /> 
     
    569569 
    570570if ($comments) { 
    571571?> 
    572 <form method="post" action="<?php echo attribute_escape("$link?page=akismet-admin"); ?>" id="akismetsearch"> 
    573 <p>  <input type="text" name="s" value="<?php if (isset($_POST['s'])) echo attribute_escape($_POST['s']); ?>" size="17" /> 
    574   <input type="submit" class="button" name="submit" value="<?php echo attribute_escape(__('Search Spam &raquo;')) ?>"  />  </p> 
     572<form method="post" action="<?php echo attr("$link?page=akismet-admin"); ?>" id="akismetsearch"> 
     573<p>  <input type="text" name="s" value="<?php if (isset($_POST['s'])) echo attr($_POST['s']); ?>" size="17" /> 
     574  <input type="submit" class="button" name="submit" value="<?php echo _a('Search Spam &raquo;') ?>"  />  </p> 
    575575</form> 
    576576<?php if ( $total > 50 ) { 
    577577$total_pages = ceil( $total / 50 ); 
     
    605605?> 
    606606 
    607607<?php } ?> 
    608 <form style="clear: both;" method="post" action="<?php echo attribute_escape( add_query_arg( 'noheader', 'true' ) ); ?>"> 
     608<form style="clear: both;" method="post" action="<?php echo attr( add_query_arg( 'noheader', 'true' ) ); ?>"> 
    609609<?php akismet_nonce_field($akismet_nonce) ?> 
    610610<input type="hidden" name="action" value="recover" /> 
    611611<ul id="spam-list" class="commentlist" style="list-style: none; margin: 0; padding: 0;"> 
     
    672672} 
    673673?> 
    674674<p class="submit"> 
    675 <input type="submit" name="submit" value="<?php echo attribute_escape(__('De-spam marked comments &raquo;')); ?>" /> 
     675<input type="submit" name="submit" value="<?php echo _a('De-spam marked comments &raquo;'); ?>" /> 
    676676</p> 
    677677<p><?php _e('Comments you de-spam will be submitted to Akismet as mistakes so it can learn and get better.'); ?></p> 
    678678</form> 
     
    683683<?php } ?> 
    684684 
    685685<?php if ( !isset( $_POST['s'] ) ) { ?> 
    686 <form method="post" action="<?php echo attribute_escape( add_query_arg( 'noheader', 'true' ) ); ?>"> 
     686<form method="post" action="<?php echo attr( add_query_arg( 'noheader', 'true' ) ); ?>"> 
    687687<?php akismet_nonce_field($akismet_nonce) ?> 
    688688<p><input type="hidden" name="action" value="delete" /> 
    689 <?php printf(__('There are currently %1$s comments identified as spam.'), $spam_count); ?>&nbsp; &nbsp; <input type="submit" name="Submit" class="button" value="<?php echo attribute_escape(__('Delete all')); ?>" /> 
     689<?php printf(__('There are currently %1$s comments identified as spam.'), $spam_count); ?>&nbsp; &nbsp; <input type="submit" name="Submit" class="button" value="<?php echo _a('Delete all'); ?>" /> 
    690690<input type="hidden" name="display_time" value="<?php echo current_time('mysql', 1); ?>" /></p> 
    691691</form> 
    692692<?php } ?>