WordPress.org

Make WordPress Core

Ticket #8264: comment-hcard.patch

File comment-hcard.patch, 1.9 KB (added by wnorris, 10 years ago)
  • wp-includes/comment-template.php

     
    139139        if ( empty( $url ) || 'http://' == $url )
    140140                $return = $author;
    141141        else
    142                 $return = "<a href='$url' rel='external nofollow'>$author</a>";
     142                $return = "<a href='$url' rel='external nofollow' class='url'>$author</a>";
    143143        return apply_filters('get_comment_author_link', $return);
    144144}
    145145
     
    11491149                <?php endif; ?>
    11501150                <div class="comment-author vcard">
    11511151                <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?>
    1152                 <?php printf(__('<cite>%s</cite> Says:'), get_comment_author_link()) ?>
     1152                <?php printf(__('<cite class="fn">%s</cite> Says:'), get_comment_author_link()) ?>
    11531153                </div>
    11541154<?php if ($comment->comment_approved == '0') : ?>
    11551155                <em><?php _e('Your comment is awaiting moderation.') ?></em>
     
    12811281        $wp_query->max_num_comment_pages = $walker->max_pages;
    12821282}
    12831283
    1284 ?>
    1285  No newline at end of file
     1284?>
  • wp-includes/pluggable.php

     
    15351535                if ( !empty( $rating ) )
    15361536                        $out .= "&amp;r={$rating}";
    15371537
    1538                 $avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size}' height='{$size}' width='{$size}' />";
     1538                $avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />";
    15391539        } else {
    1540                 $avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} avatar-default' height='{$size}' width='{$size}' />";
     1540                $avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
    15411541        }
    15421542
    15431543        return apply_filters('get_avatar', $avatar, $id_or_email, $size, $default, $alt);