Make WordPress Core


Ignore:
Timestamp:
10/29/2019 04:40:34 PM (7 years ago)
Author:
desrosj
Message:

Bundled Themes: Update Twenty Twenty.

This brings Twenty Twenty in-sync with GitHub.

For a complete list of changes since [46571], see https://github.com/WordPress/twentytwenty/compare/4549fd9...dea9290.

Reviewed by ianbelanger, SergeyBiryukov, desrosj.
Props anlino, ianbelanger, poena, williampatton, collet, erikkroes, torres126, intimez, byalextran, mehidi258, swapnild, nielslange.
Merges [46613] to the 5.3 branch.
Fixes #48450.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-content/themes/twentytwenty/template-parts/entry-author-bio.php

    r46571 r46614  
    1010if ( (bool) get_the_author_meta( 'description' ) ) : ?>
    1111<div class="author-bio">
    12                 <?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
    13                 <div class="author-info">
    14                         <h2 class="author-title heading-size-4">
    15                                         <?php
    16                                         printf(
    17                                                 /* translators: %s: Author name */
    18                                                 __( 'By %s', 'twentytwenty' ),
    19                                                 esc_html( get_the_author() )
    20                                         );
    21                                         ?>
    22                         </h2>
    23                         <p class="author-description">
    24                                 <?php the_author_meta( 'description' ); ?>
    25                                 <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    26                                         <?php _e( 'View Archive &rarr;', 'twentytwenty' ); ?>
    27                                 </a>
    28                         </p><!-- .author-description -->
     12        <div class="author-title-wrapper">
     13                <div class="author-avatar vcard">
     14                        <?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
    2915                </div>
     16                <h2 class="author-title heading-size-4">
     17                        <?php
     18                        printf(
     19                                /* translators: %s: Author name */
     20                                __( 'By %s', 'twentytwenty' ),
     21                                esc_html( get_the_author() )
     22                        );
     23                        ?>
     24                </h2>
     25        </div><!-- .author-name -->
     26        <div class="author-description">
     27                <?php echo wp_kses_post( wpautop( get_the_author_meta( 'description' ) ) ); ?>
     28                <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
     29                        <?php _e( 'View Archive <span aria-hidden="true">&rarr;</span>', 'twentytwenty' ); ?>
     30                </a>
     31        </div><!-- .author-description -->
    3032</div><!-- .author-bio -->
    3133<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.