Changeset 44155 for trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
- Timestamp:
- 12/14/2018 03:24:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r44149 r44155 38 38 $comment_author = get_comment_author( $comment ); 39 39 $avatar = get_avatar( $comment, $args['avatar_size'] ); 40 if ( 0 != $args['avatar_size'] ) { 41 if ( empty( $comment_author_url ) ) { 42 echo $avatar; 43 } else { 44 printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url ); 45 echo $avatar; 46 } 40 if ( 0 != $args['avatar_size'] ) { 41 if ( empty( $comment_author_url ) ) { 42 echo $avatar; 43 } else { 44 printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url ); 45 echo $avatar; 47 46 } 47 } 48 48 49 49 /* … … 51 51 * fill color to the inner check shape when in circle form. 52 52 */ 53 54 55 56 53 if ( twentynineteen_is_comment_by_post_author( $comment ) ) { 54 /* translators: %s: SVG Icon */ 55 printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) ); 56 } 57 57 58 58 printf( … … 62 62 ); 63 63 64 65 66 64 if ( ! empty( $comment_author_url ) ) { 65 echo '</a>'; 66 } 67 67 ?> 68 68 </div><!-- .comment-author -->
Note: See TracChangeset
for help on using the changeset viewer.