feat(users): govern profiles and access
Normalize fixed profile fields, profile actions, and the five-column capability matrix for comments, uploads, and downloads.
This commit is contained in:
@@ -76,7 +76,6 @@ if (!function_exists('aksrt_comments_build_context')) :
|
||||
'order' => 'desc',
|
||||
'nested_depth' => 3,
|
||||
'require_login' => false,
|
||||
'allow_reply' => true,
|
||||
'avatar_size' => 48,
|
||||
'empty_text' => __('暂无评论,来做第一个评论的人吧~', 'aksrt'),
|
||||
];
|
||||
@@ -109,7 +108,6 @@ if (!function_exists('aksrt_comments_build_context')) :
|
||||
'post_author_id' => (int) get_the_author_meta('ID'),
|
||||
'avatar_size' => $avatar_size,
|
||||
'max_depth' => max(1, (int) ($settings['nested_depth'] ?? 3)),
|
||||
'allow_reply' => !empty($settings['allow_reply']),
|
||||
'empty_text' => (string) ($settings['empty_text'] ?? __('暂无评论,来做第一个评论的人吧~', 'aksrt')),
|
||||
'toolbar' => $toolbar,
|
||||
'upload_enabled' => !empty($toolbar['upload_img']),
|
||||
|
||||
Reference in New Issue
Block a user