post_author ) ) { echo '
' ; $unakit_author['name'] = esc_html( get_the_author_meta( 'display_name', $post->post_author ) ); if ( empty($unakit_author['name']) ) { $unakit_author['name'] = esc_html( get_the_author_meta( 'nickname', $post->post_author ) ); } $unakit_author['description'] = wp_kses_post( get_the_author_meta( 'user_description', $post->post_author ) ); $unakit_author['website'] = esc_url( get_the_author_meta( 'url', $post->post_author ) ); $unakit_author['page'] = esc_url( get_author_posts_url( get_the_author_meta( 'ID', $post->post_author ) ) ); $unakit_author['avatar'] = esc_url( get_avatar_url( $post->post_author, [ 'size' => 48, ] ) ); if ( !empty($unakit_author['avatar']) ) { echo '' ; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo '
' ; if ( !empty($unakit_author['name']) ) { echo '

' . $unakit_author['name'] . '

' ; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } if ( !empty($unakit_author['website']) ) { echo '

' . str_replace( [ 'https://', 'http://' ], '', $unakit_author['website'] ) . '

' ; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } if ( !empty($unakit_author['description']) ) { echo '

' . $unakit_author['description'] . '

' ; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo '
' ; }