Changeset 43860 for branches/5.0/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
- Timestamp:
- 11/02/2018 11:52:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r43842 r43860 36 36 $comment_author_link = get_comment_author_link( $comment ); 37 37 $comment_author_url = get_comment_author_url( $comment ); 38 $comment_author = get_comment_author( $comment ); 38 39 $avatar = get_avatar( $comment, $args['avatar_size'] ); 39 40 if ( 0 != $args['avatar_size'] ) { … … 41 42 echo $avatar; 42 43 } else { 43 echo preg_replace( '/>[^<]+</', sprintf( '>%s<', $avatar ), $comment_author_link ); 44 printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url ); 45 echo $avatar; 44 46 } 45 47 } … … 57 59 printf( 58 60 __( '%s <span class="screen-reader-text says">says:</span>', 'twentynineteen' ), 59 sprintf( '< b class="fn">%s</b>', get_comment_author_link( $comment ))61 sprintf( '<span class="fn">%s</span>', $comment_author ) 60 62 ); 63 64 if ( ! empty( $comment_author_url ) ) { 65 echo '</a>'; 66 } 61 67 ?> 62 68 </div><!-- .comment-author -->
Note: See TracChangeset
for help on using the changeset viewer.