Add words to blacklist in comments

Discussion in 'WordPress' started by Zack!, Oct 31, 2012.

  1. #1
    The theme im using is a heavily customized theme & its not blocking the words specified under 'Comments blacklist' section of Discussions settings.

    Is there any other way for me to add the words to block right into the core files of WP?
    I can specify the words to blacklist in functions.php?If yes, how to go abt it?
     
    Zack!, Oct 31, 2012 IP
  2. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #2
    Well, AFAIK themes don't process submitted comments - WP does that. The problem must be somewhere else.
     
    Devtard, Oct 31, 2012 IP
  3. Zack!

    Zack! Active Member

    Messages:
    259
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Yes, seems so.I scanned through the theme files but couldnt find any comment processing file.So it should well be done by WP itself.Do you know which files does that?
     
    Zack!, Oct 31, 2012 IP
  4. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #4
    I am not sure but my first guess would be wp-comments-post.php.

    This behaviour you describe is really strange, WP normally doesn't ignore the blacklist. Did you try turning off all plugins?
     
    Devtard, Oct 31, 2012 IP
  5. Zack!

    Zack! Active Member

    Messages:
    259
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #5
    Where is that file located?Im searching in admin,includes folder too but no find.
    Also turnedoff all plugins,added few words in comments blacklist & posted the same words in comments.All wer published instead of getting blocked!!
     
    Zack!, Oct 31, 2012 IP
  6. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #6
    The file is located in the root directory.

    Try to setup a new installation (with the default theme, just to be sure) and then post blacklisted words in a comment. If the comment won't be put into a moderation queue it is probably a bug that should be reported.
     
    Devtard, Oct 31, 2012 IP