Make WordPress Core

Ticket #7051: 7051.4.diff

File 7051.4.diff, 1.5 KB (added by wonderboymusic, 10 years ago)
  • src/wp-admin/options-discussion.php

     
    161161<tr>
    162162<th scope="row"><?php _e('Comment Blacklist'); ?></th>
    163163<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 &#8220;press&#8221; will match &#8220;WordPress&#8221;.'); ?></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 &#8220;press&#8221; will match &#8220;WordPress&#8221;.'); ?></label></p>
    165165<p>
    166166<textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea>
    167167</p>
  • src/wp-includes/comment-functions.php

     
    656656                        $commentdata['comment_author_IP'],
    657657                        $commentdata['comment_agent']
    658658                ) ) {
    659                         $approved = 'spam';
     659                        $approved = EMPTY_TRASH_DAYS ? 'trash' : 'spam';
    660660                }
    661661        }
    662662