CoreFiles by mySites.guru
entry-author-bio.php33 lines, 908 bytes, from wordpress-5.3-beta3.zip
Raw History Compare with 5.3-beta2
md5
eea1b115bac455e8fbee0ded816d030a
sha1
d186949d1b014aacfdbc20c66589e8a6851aedd1
sha256
27ea3778731261e01f8a28242712b1eb80e971e73e5ced21cbcd1707f11bf844
<?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">
		<h2 class="author-title heading-size-4">
			<div class="author-avatar vcard">
				<?php echo get_avatar( get_the_author_meta( 'ID' ), 160 ); ?>
			</div>
			<span class="author-name">
				<?php
				printf(
					/* translators: %s: Author name */
					__( 'By %s', 'twentytwenty' ),
					esc_html( get_the_author() )
				);
				?>
			</span>
		</h2>
		<p class="author-description">
			<?php 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 &rarr;', 'twentytwenty' ); ?>
			</a>
		</p><!-- .author-description -->
</div><!-- .author-bio -->
<?php endif; ?>

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