Make WordPress Core

Ticket #47102: 47102.diff

File 47102.diff, 897 bytes (added by garrett-eclipse, 5 years ago)

Patch to remove duplicate post-author-badge code.

  • src/wp-content/themes/twentynineteen/classes/class-twentynineteen-walker-comment.php

     
    4444                                                                echo $avatar;
    4545                                                        }
    4646                                                }
    47                                                 /*
    48                                                  * Using the `check` icon instead of `check_circle`, since we can't add a
    49                                                  * fill color to the inner check shape when in circle form.
    50                                                  */
    51                                                 if ( twentynineteen_is_comment_by_post_author( $comment ) ) {
    52                                                         printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) );
    53                                                 }
    5447
    5548                                                /*
    5649                                                 * Using the `check` icon instead of `check_circle`, since we can't add a