Skip to content

Commit

Permalink
Apply linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snim2 committed Dec 12, 2024
1 parent 7c85d9a commit 44d04ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/byline.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function gds_byline()
{
?>
<span class="govuk-visually-hidden">Posted by: </span><?php
$tmp_author_id = get_post_field( 'post_author', $post->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);
Expand Down

0 comments on commit 44d04ed

Please sign in to comment.