fix(style): refresh author card
This commit is contained in:
@@ -54,6 +54,9 @@ class WidgetAuthorCard extends \WP_Widget {
|
||||
$bio = (string) $user->description;
|
||||
}
|
||||
$cover = (string) get_user_meta($author_id, 'aksrt_background_image', true);
|
||||
if ($cover === '') {
|
||||
$cover = get_theme_file_uri('assets/img/person_background.png');
|
||||
}
|
||||
|
||||
$post_count = count_user_posts($author_id, 'post', true);
|
||||
$followers = 0;
|
||||
|
||||
Reference in New Issue
Block a user