fix(user-home): align profile comments with reference theme
This commit is contained in:
1 parent
00817766a6
commit
56bbb63afd
8 files changed
+261
-131
No files matched your search
@@ -41,9 +41,11 @@ function aksrt_get_user_dashboard_view(int $user_id, array $args = []): array {
|
||||
|
||||
$post_count = (int) count_user_posts($user_id, 'post', true);
|
||||
$comment_count = (int) get_comments([
|
||||
'user_id' => $user_id,
|
||||
'count' => true,
|
||||
'status' => 'approve',
|
||||
'user_id' => $user_id,
|
||||
'count' => true,
|
||||
'status' => 'approve',
|
||||
'type' => 'comment',
|
||||
'post_type' => ['post'],
|
||||
]);
|
||||
|
||||
$favorite_post_ids = function_exists('aksrt_get_user_interaction_posts')
|
||||
|
||||
@@ -22,6 +22,8 @@ extract($context, EXTR_SKIP); // phpcs:ignore WordPress.PHP.DontExtract.extract_
|
||||
'number' => $per_page,
|
||||
'offset' => ($comments_page - 1) * $per_page,
|
||||
'status' => 'approve',
|
||||
'type' => 'comment',
|
||||
'post_type' => ['post'],
|
||||
'update_comment_meta_cache' => false,
|
||||
]);
|
||||
if ($cs) :
|
||||
|
||||
Reference in new issue
Block a user