Ticket #9650: 9650 .patch
| File 9650 .patch, 3.6 KB (added by hakre, 4 years ago) |
|---|
-
wp-content/plugins/akismet/akismet.php
505 505 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’t sweat it.').'</p>'; 506 506 ?> 507 507 <?php if ( !isset( $_POST['s'] ) ) { ?> 508 <form method="post" action="<?php echo attr ibute_escape( add_query_arg( 'noheader', 'true' ) ); ?>">508 <form method="post" action="<?php echo attr( add_query_arg( 'noheader', 'true' ) ); ?>"> 509 509 <?php akismet_nonce_field($akismet_nonce) ?> 510 510 <input type="hidden" name="action" value="delete" /> 511 511 <?php printf(__('There are currently %1$s comments identified as spam.'), $spam_count); ?> <input type="submit" class="button delete" name="Submit" value="<?php _e('Delete all'); ?>" /> … … 569 569 570 570 if ($comments) { 571 571 ?> 572 <form method="post" action="<?php echo attr ibute_escape("$link?page=akismet-admin"); ?>" id="akismetsearch">573 <p> <input type="text" name="s" value="<?php if (isset($_POST['s'])) echo attr ibute_escape($_POST['s']); ?>" size="17" />574 <input type="submit" class="button" name="submit" value="<?php echo attribute_escape(__('Search Spam »')) ?>" /> </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 »') ?>" /> </p> 575 575 </form> 576 576 <?php if ( $total > 50 ) { 577 577 $total_pages = ceil( $total / 50 ); … … 605 605 ?> 606 606 607 607 <?php } ?> 608 <form style="clear: both;" method="post" action="<?php echo attr ibute_escape( add_query_arg( 'noheader', 'true' ) ); ?>">608 <form style="clear: both;" method="post" action="<?php echo attr( add_query_arg( 'noheader', 'true' ) ); ?>"> 609 609 <?php akismet_nonce_field($akismet_nonce) ?> 610 610 <input type="hidden" name="action" value="recover" /> 611 611 <ul id="spam-list" class="commentlist" style="list-style: none; margin: 0; padding: 0;"> … … 672 672 } 673 673 ?> 674 674 <p class="submit"> 675 <input type="submit" name="submit" value="<?php echo attribute_escape(__('De-spam marked comments »')); ?>" />675 <input type="submit" name="submit" value="<?php echo _a('De-spam marked comments »'); ?>" /> 676 676 </p> 677 677 <p><?php _e('Comments you de-spam will be submitted to Akismet as mistakes so it can learn and get better.'); ?></p> 678 678 </form> … … 683 683 <?php } ?> 684 684 685 685 <?php if ( !isset( $_POST['s'] ) ) { ?> 686 <form method="post" action="<?php echo attr ibute_escape( add_query_arg( 'noheader', 'true' ) ); ?>">686 <form method="post" action="<?php echo attr( add_query_arg( 'noheader', 'true' ) ); ?>"> 687 687 <?php akismet_nonce_field($akismet_nonce) ?> 688 688 <p><input type="hidden" name="action" value="delete" /> 689 <?php printf(__('There are currently %1$s comments identified as spam.'), $spam_count); ?> <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); ?> <input type="submit" name="Submit" class="button" value="<?php echo _a('Delete all'); ?>" /> 690 690 <input type="hidden" name="display_time" value="<?php echo current_time('mysql', 1); ?>" /></p> 691 691 </form> 692 692 <?php } ?>
