用户功能设置收口与废弃后台链路清理

This commit is contained in:
2026-08-23 22:09:12 +08:00
parent 081eb0870d
commit 86692ff3f9
59 changed files with 506 additions and 1767 deletions
+1 -4
View File
@@ -67,10 +67,7 @@ if (!function_exists('aksrt_get_header_nav_context')) :
$current_user = wp_get_current_user();
$user_id = (int) $current_user->ID;
$user_desc = $user_id > 0 ? (string) get_user_meta($user_id, 'description', true) : '';
if ($user_desc === '' && $user_id > 0) {
$user_desc = (string) $current_user->user_email;
}
$user_desc = $user_id > 0 && function_exists('aksrt_get_user_description') ? aksrt_get_user_description($user_id) : '';
$ctx = [
'settings' => $settings,