From a5bcb0342bf4da8a1cf1f6da42d2e414f0038449 Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 17 Sep 2024 15:51:56 +0200 Subject: [PATCH] fix: remove duplicate author display logic Removed redundant fallback to `the_author()` when displaying article authors. The authors are already sourced from post meta, ensuring accurate and consistent author data presentation. Streamlined code for better readability and maintainability. --- single-article.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/single-article.php b/single-article.php index c58e6eb..ebadcd5 100644 --- a/single-article.php +++ b/single-article.php @@ -11,8 +11,6 @@ $authors = get_post_meta(get_the_ID(), 'article_authors', true); if (!empty($authors)) { echo implode('; ', array_map('esc_html', $authors)); - } else { - the_author(); } ?>

@@ -29,6 +27,7 @@

Abstract:

+