Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a list of words that I placed in my blacklist_key option values update_option( 'blacklist_keys', $words);. But I still can make a comment with such words. Any ideas?

I can't answer my question yet, so here it is. There is no clean way to do this. You have to use a multiline string such that:

$words = 'word1
          word2
          word3';
share|improve this question
add comment

1 Answer

I just did a quick test and the comment blacklist appears to be ignored for logged in administrators (possibly other roles). It does effectively block comments when logged in as a subscriber. I suspect that that is the behavior you are seeing.

share|improve this answer
    
No I was able to see them as a subscriber. Now I was just reading link and I realized that my variable $words is an array of strings not a string. Im gonna change this, hopefully it will work. –  LouieV May 6 '13 at 14:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.