HEX
Server: Apache/2.4.65 (Debian)
System: Linux 744648315b55 6.8.0-84-generic #84-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 5 22:36:38 UTC 2025 x86_64
User: (1000)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/newsmunch/template-parts/content-author.php
<?php
/**
 * Template part for displaying author Meta
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package NewsMunch
 */
$newsmunch_author_data 		= get_the_author_meta( 'description' );
$newsmunch_active_author_id  = get_the_author_meta( 'ID' );
$newsmunch_active_user_id    = is_user_logged_in() ? wp_get_current_user()->ID : false;
?>
<div class="about-author padding-30 rounded">
	<div class="thumb">
		<?php echo get_avatar( get_the_author_meta('ID'), 200); ?>
	</div>
	<div class="details">
		<h4 class="name"><?php the_author_link(); ?></h4>
		<?php 
			if ( '' === $newsmunch_author_data ) {
				if ( $newsmunch_active_user_id && $newsmunch_active_author_id === $newsmunch_active_user_id ) {

					// Translators: %1$s: <a> tag. %2$s: </a>.
					printf( wp_kses_post( __( 'You haven&rsquo;t entered your Biographical Information yet. %1$sEdit your Profile%2$s now.', 'newsmunch' ) ), '<a href="' . esc_url( get_edit_user_link( $newsmunch_active_user_id ) ) . '">', '</a>' );
				}
			}else{
				echo wp_kses_post( $newsmunch_author_data ); 
			}
		?>
	</div>
</div>