refactor(permissions): remove hard-off compat stubs and harden login schema

Delete aksrt-compat.php and rewire messages/PM entry points to the user
center notification route. Normalize permissions login dependsOn objects
and allow an explicit empty captcha provider option so login/moderation
schema pages remain loadable without legacy compatibility shims.
This commit is contained in:
kate522 committed 2026-07-11 15:29:20 +08:00
1 parent f86513dbff
commit 06e551e6d8
6 files changed
+14 -53

No files matched your search

+1 -1
View File
@@ -453,7 +453,7 @@ if (!function_exists('aksrt_get_user_center_render_context')) {
'show_avatar_edit' => !empty($user_center_settings['avatar_upload']),
'avatar_settings_url' => admin_url('profile.php'),
'notification_unread_count' => function_exists('aksrt_get_user_unread_notification_count') ? aksrt_get_user_unread_notification_count($user_id) : 0,
'messages_url' => function_exists('aksrt_get_messages_url') ? aksrt_get_messages_url() : aksrt_get_user_center_url('notif'),
'messages_url' => aksrt_get_user_center_url('notif'),
'per_page' => 10,
'posts_page' => max(1, isset($_GET['posts_page']) ? (int) $_GET['posts_page'] : 1),
'comments_page' => max(1, isset($_GET['comments_page']) ? (int) $_GET['comments_page'] : 1),