What's the best way of checking if my commenter is also the author of the post that he post comment on?
I know there's a css way (
.byauthor), but how about PHP? How to compare post author with comment author? I was trying with is_author(), the_author() and comment_author() but it just doesn't look right (what if somebody uses the same nickname as author?).
Here's my code for now:
<?php if(get_the_author() == get_comment_author()) _e( 'Author', 'theme' ) ?>