Make WordPress Core


Ignore:
Timestamp:
02/28/2019 01:54:14 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Avoid nested comment author links in TwentyNineteen_Walker_Comment::html5_comment().

Props iamdmitrymayorov, mukesh27.
Fixes #46291.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php

    r44305 r44771  
    3434                                        <div class="comment-author vcard">
    3535                                                <?php
    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'] );
     36                                                $comment_author_url = get_comment_author_url( $comment );
     37                                                $comment_author     = get_comment_author( $comment );
     38                                                $avatar             = get_avatar( $comment, $args['avatar_size'] );
    4039                                                if ( 0 != $args['avatar_size'] ) {
    4140                                                        if ( empty( $comment_author_url ) ) {
     
    7271                                                                )
    7372                                                        ),
    74                                                         '<b class="fn">' . get_comment_author_link( $comment ) . '</b>'
     73                                                        '<b class="fn">' . $comment_author . '</b>'
    7574                                                );
    7675
Note: See TracChangeset for help on using the changeset viewer.