Revision: 47342
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 6, 2011 01:03 by alp
Initial Code
/** * Remove nofollow From Comments * http://toscho.de/2009/no-no-no-nofollow/ * **/ function myfunction_dofollow($str) { $str = preg_replace( '~<a ([^>]*)\s*(["|\']{1}\w*)\s*nofollow([^>]*)>~U', '<a ${1}${2}${3}>', $str); return str_replace(array(' rel=""', " rel=''"), '', $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');
Initial URL
http://toscho.de/2009/no-no-no-nofollow/
Initial Description
Initial Title
Wordpress: Remove nofollow From Comments
Initial Tags
wordpress
Initial Language
PHP