
By default, WordPress automatically turns urls left in the comment form into links. This can be useful, but as there’s lots of spammers on the internet, you might want to remove this feature.

By default, WordPress automatically turns urls left in the comment form into links. This can be useful, but as there’s lots of spammers on the internet, you might want to remove this feature.
To remove automatic linking of urls in comments, simply open your functions.php file and paste the following:
remove_filter('comment_text', 'make_clickable', 9);
That's all! Once saved, you can say bye bye to spammy links in comments.
This recipe has been initially published on CatsWhoCode. Don't forget to read CWC's list of 10 new WordPress hacks!
5 Responses
It worked for me! Thank you very much.
It worked for me too!
Thank you very much.
I could’nt find where to put the code, but I found an other solution :
Open the file function.php, find the function twentyten_comment() and replace
sprintf( ‘%s‘, get_comment_author_link() ) );
by
sprintf( ‘%s‘, get_comment_author() ) );
\o/ Yeah !
This doesn’t work for me
Looks to be an Interesting options
Trackbacks: