Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/8acaff965cfd3c7645c9 to your computer and use it in GitHub Desktop.
Save anonymous/8acaff965cfd3c7645c9 to your computer and use it in GitHub Desktop.
<?php
/**
* Die Nofollow Attribute aus den Kommentarlinks und Kommentarinhalten entfernen
*
*/
function evolution_commentdofollow($text) {
return str_replace('" rel="nofollow">', '">', $text);
}
add_filter('comment_text', 'evolution_commentdofollow');
remove_filter('pre_comment_content', 'wp_rel_nofollow', 15);
function evolution_remove_nofollow($string){
return str_ireplace(' nofollow', '', $string);
}
add_filter('get_comment_author_link', 'evolution_remove_nofollow');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment