WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/02/2018 11:52:16 PM (9 months ago)
Author:
allancole
Message:

Importing Twenty Nineteen, our new default theme for 2019, set for 5.0.

Let Gutenberg shine with this simple, fast, and powerful theme. Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, netweb, b-07, khleomix, blowery, dereksmart, jasmussen, audrasjb, nielslange, mmaumio, dimadin, joyously, anevins12, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, mukeshpanchal27, burhandodhy, crunnells, Ismail-elkorchi, aryaprakasa.

File:
1 edited

Legend:

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

    r43842 r43860  
    3636                            $comment_author_link = get_comment_author_link( $comment );
    3737                            $comment_author_url  = get_comment_author_url( $comment );
     38                            $comment_author      = get_comment_author( $comment );
    3839                            $avatar              = get_avatar( $comment, $args['avatar_size'] );
    3940                            if ( 0 != $args['avatar_size'] ) {
     
    4142                                    echo $avatar;
    4243                                } 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;
    4446                                }
    4547                            }
     
    5759                            printf(
    5860                                __( '%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 )
    6062                            );
     63
     64                            if ( ! empty( $comment_author_url ) ) {
     65                                echo '</a>';
     66                            }
    6167                        ?>
    6268                    </div><!-- .comment-author -->
Note: See TracChangeset for help on using the changeset viewer.