Changeset 44305 for trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
- Timestamp:
- 12/18/2018 10:45:16 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 44196,44199,44201-44202
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php
r44155 r44305 34 34 <div class="comment-author vcard"> 35 35 <?php 36 37 38 39 36 $comment_author_link = get_comment_author_link( $comment ); 37 $comment_author_url = get_comment_author_url( $comment ); 38 $comment_author = get_comment_author( $comment ); 39 $avatar = get_avatar( $comment, $args['avatar_size'] ); 40 40 if ( 0 != $args['avatar_size'] ) { 41 41 if ( empty( $comment_author_url ) ) { … … 46 46 } 47 47 } 48 49 /* 50 * Using the `check` icon instead of `check_circle`, since we can't add a 51 * fill color to the inner check shape when in circle form. 52 */ 48 /* 49 * Using the `check` icon instead of `check_circle`, since we can't add a 50 * fill color to the inner check shape when in circle form. 51 */ 53 52 if ( twentynineteen_is_comment_by_post_author( $comment ) ) { 54 /* translators: %s: SVG Icon */55 53 printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) ); 56 54 } 57 55 58 printf( 59 /* translators: %s: comment author link */ 56 /* 57 * Using the `check` icon instead of `check_circle`, since we can't add a 58 * fill color to the inner check shape when in circle form. 59 */ 60 if ( twentynineteen_is_comment_by_post_author( $comment ) ) { 61 printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) ); 62 } 63 64 printf( 65 /* translators: %s: comment author link */ 66 wp_kses( 60 67 __( '%s <span class="screen-reader-text says">says:</span>', 'twentynineteen' ), 61 sprintf( '<span class="fn">%s</span>', $comment_author ) 62 ); 68 array( 69 'span' => array( 70 'class' => array(), 71 ), 72 ) 73 ), 74 '<b class="fn">' . get_comment_author_link( $comment ) . '</b>' 75 ); 63 76 64 77 if ( ! empty( $comment_author_url ) ) { … … 111 124 <?php 112 125 } 113 114 126 }
Note: See TracChangeset
for help on using the changeset viewer.