/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Remove nofollow From Comments * http://toscho.de/2009/no-no-no-nofollow/ * **/ function myfunction_dofollow($str) { '~<a ([^>]*)\s*(["|\']{1}\w*)\s*nofollow([^>]*)>~U', '<a ${1}${2}${3}>', $str); } remove_filter('pre_comment_content', 'wp_rel_nofollow'); add_filter ('get_comment_author_link', 'myfunction_dofollow'); add_filter ('post_comments_link', 'myfunction_dofollow'); add_filter ('comment_reply_link', 'myfunction_dofollow'); add_filter ('comment_text', 'myfunction_dofollow');
URL: http://toscho.de/2009/no-no-no-nofollow/
Comments
