Batovasan, create nicely WordPress Tutorial. The reason create this tutorial is Small Security Hole on WordPress.
Like we all know by default, when the blog admin left a comment on his blog, WordPress use the name in the comment css class. This is useful for styling, but it will also let people know about your admin login name. This is not good, because some hacker or whatever we call it, can use this info to crack our WordPress site.
The Solutions is simple, put this code on your 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' );
The code above will clean comment_class for the author. I hope you enjoy this tiny tricks on WordPress. Thanks for WP Recipes to share it




Pingback: Tweets that mention How To Remove admin name in comments class # WordPress Tricks & Tips -- Topsy.com
Pingback: Display Clean Pingbacks and Trackbacks | Unlock IMEI Cellphones