Make WordPress Core

Ticket #7051: 7051.2.diff

File 7051.2.diff, 1.7 KB (added by MikeHansenMe, 10 years ago)

Refreshed

  • src/wp-admin/options-discussion.php

     
    177177</fieldset></td>
    178178</tr>
    179179<tr>
    180 <th scope="row"><?php _e('Comment Blacklist'); ?></th>
    181 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend>
    182 <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 &#8220;press&#8221; will match &#8220;WordPress&#8221;.'); ?></label></p>
     180<th scope="row"><?php _e( 'Comment Blacklist' ); ?></th>
     181<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Comment Blacklist' ); ?></span></legend>
     182<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 &#8220;press&#8221; will match &#8220;WordPress&#8221;.'); ?></label></p>
    183183<p>
    184184<textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea>
    185185</p>
  • src/wp-includes/comment.php

     
    13161316                        $commentdata['comment_author_IP'],
    13171317                        $commentdata['comment_agent']
    13181318                ) ) {
    1319                         $approved = 'spam';
     1319                        $approved = 'trash';
    13201320                }
    13211321        }
    13221322