Make WordPress Core

Ticket #45424: 45424.15.patch

File 45424.15.patch, 1.4 KB (added by allancole, 6 years ago)

Fixes some minor code quality issues. More info here: https://github.com/WordPress/twentynineteen/pull/237

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

     
    5151                                                         * fill color to the inner check shape when in circle form.
    5252                                                         */
    5353                                                        if ( twentynineteen_is_comment_by_post_author( $comment ) ) {
    54                                                                 /* translators: %s: SVG Icon */
    5554                                                                printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) );
    5655                                                        }
    5756
     
    110109                        ?>
    111110                <?php
    112111        }
    113 
    114112}
  • src/wp-content/themes/twentynineteen/template-parts/post/author-bio.php

     
    1010if ( (bool) get_the_author_meta( 'description' ) ) : ?>
    1111<div class="author-bio">
    1212        <h2 class="author-title">
     13                <?php /* translators: %s: author name */ ?>
    1314                <span class="author-heading"><?php echo esc_html( sprintf( __( 'Published by %s', 'twentynineteen' ), get_the_author() ) ); ?></span>
    1415        </h2>
    1516        <p class="author-description">