security optimisation
-
hi,
i noticed that posting a comment while being connected adds my id in the source code, not very secure i think, after googling i found this post, just add to your functions.php child theme to hide your id ; maybe ts would be useful to include it in parent’s theme functions.php ?function remove_comment_author_class( $classes ) { foreach( $classes as $key => $class ) { if(strstr($class, "comment-author-")) { unset( $classes[$key] ); } } return $classes; } add_filter( 'comment_class' , 'remove_comment_author_class' );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘security optimisation’ is closed to new replies.