Ticket #7051: 7051.4.diff
File 7051.4.diff, 1.5 KB (added by , 10 years ago) |
---|
-
src/wp-admin/options-discussion.php
161 161 <tr> 162 162 <th scope="row"><?php _e('Comment Blacklist'); ?></th> 163 163 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend> 164 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p>164 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP, it will be put in the trash. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p> 165 165 <p> 166 166 <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> 167 167 </p> -
src/wp-includes/comment-functions.php
656 656 $commentdata['comment_author_IP'], 657 657 $commentdata['comment_agent'] 658 658 ) ) { 659 $approved = 'spam';659 $approved = EMPTY_TRASH_DAYS ? 'trash' : 'spam'; 660 660 } 661 661 } 662 662