CoreFiles by mySites.guru
entry-author-bio.php33 lines, 988 bytes, from wordpress-5.3-RC4.zip
Raw History Compare with 5.3-RC3
md5
9cb86109a95a8e156866d553e7ba4680
sha1
958a627519f6079d5dcd84ba6f4d03476b0bda82
sha256
64138312b8a29865d43bacf011f7ed53e40141576007fd984d81da61c9c6cb93
<?php
/**
 * The template for displaying Author info
 *
 * @package WordPress
 * @subpackage Twenty_Twenty
 * @since 1.0.0
 */

if ( (bool) get_the_author_meta( 'description' ) ) : ?>
<div class="author-bio">
	<div class="author-title-wrapper">
		<div class="author-avatar vcard">
			<?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
		</div>
		<h2 class="author-title heading-size-4">
			<?php
			printf(
				/* translators: %s: Author name */
				__( 'By %s', 'twentytwenty' ),
				esc_html( get_the_author() )
			);
			?>
		</h2>
	</div><!-- .author-name -->
	<div class="author-description">
		<?php echo wp_kses_post( wpautop( get_the_author_meta( 'description' ) ) ); ?>
		<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
			<?php _e( 'View Archive <span aria-hidden="true">&rarr;</span>', 'twentytwenty' ); ?>
		</a>
	</div><!-- .author-description -->
</div><!-- .author-bio -->
<?php endif; ?>

The same content is in 4 releases, WordPress 5.3-RC3 to 5.3. See them all, or every version of this file.