Created
December 17, 2015 14:12
-
-
Save anonymous/8acaff965cfd3c7645c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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