fix(style): refresh author card
This commit is contained in:
1 parent
61fea15e9f
commit
caa5fca3c2
1 file changed
+3
@@ -54,6 +54,9 @@ class WidgetAuthorCard extends \WP_Widget {
|
|||||||
$bio = (string) $user->description;
|
$bio = (string) $user->description;
|
||||||
}
|
}
|
||||||
$cover = (string) get_user_meta($author_id, 'aksrt_background_image', true);
|
$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);
|
$post_count = count_user_posts($author_id, 'post', true);
|
||||||
$followers = 0;
|
$followers = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user