Permalink
Browse files

Use get_the_ID() instead of $post_id (an undefined variable).

  • Loading branch information...
1 parent 099c226 commit fd1748e5e0698b84d3bf1a7672921e1b5f3ddbf6 @justintadlock committed Sep 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 functions/context.php
@@ -258,7 +258,7 @@ function hybrid_comment_class( $class = '' ) {
}
/* Comment by the entry/post author. */
- if ( $post = get_post( $post_id ) ) {
+ if ( $post = get_post( get_the_ID() ) ) {
if ( $comment->user_id === $post->post_author )
$classes[] = 'entry-author';
}

0 comments on commit fd1748e

Please sign in to comment.