diff --git a/functions/comment-functions.php b/functions/comment-functions.php index 0a2577e..d6f228f 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -27,23 +27,22 @@ function comicpress_avatar() { endif; // $avatar = apply_filters('comicpress_avatar', $avatar); - if($url == true && $url != 'http://') - echo ''; - $id_or_email = get_comment_author_email(); - if (empty($id_or_email)) $id_or_email = get_comment_author(); - if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { - echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 64)); - } else { - if ($comment_type == 'pingback' || $comment_type == 'trackback') { - if ($comment_type == 'pingback') echo '
'; - if ($comment_type == 'trackback') echo '
'; + if ($comment_type != 'pingback' && $comment_type != 'trackback') { + echo '
'; + if($url == true && $url != 'http://') + echo ''; + $id_or_email = get_comment_author_email(); + if (empty($id_or_email)) $id_or_email = get_comment_author(); + if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { + echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 64)); } else { echo ''; } + if($url == true && $url != 'http://') + echo ''; + echo '
'; } - if($url == true && $url != 'http://') - echo ''; } /** @@ -118,9 +117,7 @@ function comicpress_comments_callback($comment, $args, $depth) {
  • > -
    - -
    +
    @@ -131,7 +128,7 @@ function comicpress_comments_callback($comment, $args, $depth) {