From 44d04edf146d9247f727b80033fb0bf05b105127 Mon Sep 17 00:00:00 2001 From: Sarah Mount Date: Thu, 12 Dec 2024 17:23:12 +0000 Subject: [PATCH] Apply linter fixes --- lib/byline.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/byline.php b/lib/byline.php index bc608ad..670c486 100644 --- a/lib/byline.php +++ b/lib/byline.php @@ -5,8 +5,8 @@ function gds_byline() { ?> Posted by: ID ); - $tmp_user = get_user_by('id', $author_id ); + $tmp_author_id = get_post_field('post_author', $post->ID); + $tmp_user = get_user_by('id', $author_id); if (empty($tmp_user->user_login)) { echo "Deleted user $tmp_author_id"; error_log("{$post->ID} has deleted user $tmp_author_id", 0);