Ticket #7051: 7051.diff
File 7051.diff, 1.6 KB (added by , 14 years ago) |
---|
-
wp-includes/comment.php
636 636 else 637 637 $approved = 0; 638 638 if ( wp_blacklist_check($comment_author, $comment_author_email, $comment_author_url, $comment_content, $comment_author_IP, $comment_agent) ) 639 $approved = ' spam';639 $approved = 'trash'; 640 640 } 641 641 642 642 $approved = apply_filters( 'pre_comment_approved', $approved, $commentdata ); -
wp-admin/options-discussion.php
148 148 <tr valign="top"> 149 149 <th scope="row"><?php _e('Comment Blacklist') ?></th> 150 150 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist') ?></span></legend> 151 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, 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>151 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, 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> 152 152 <p> 153 153 <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> 154 154 </p>