feat(users): normalize center routes and withdrawal limits

This commit is contained in:
kate522 committed 2026-08-12 19:44:47 +08:00
1 parent 9004f7093f
commit dacd0095bf
24 files changed
+326 -174

No files matched your search

+4 -4
View File
@@ -369,12 +369,12 @@ function aksrt_clear_template_page_cache(): void {
function aksrt_get_user_home_template_path(): string {
global $_aksrt_special_templates, $aksrt_profile_user;
$nicename = (string) get_query_var('user_nicename');
if ($nicename === '') {
$identifier = (string) get_query_var('aksrt_author_identifier');
if ($identifier === '') {
return '';
}
$user = get_user_by('slug', $nicename);
$user = function_exists('aksrt_resolve_public_user') ? aksrt_resolve_public_user($identifier) : null;
if (!$user instanceof WP_User) {
return '';
}
@@ -393,7 +393,7 @@ function aksrt_get_user_home_template_path(): string {
* Resolve the active special-page template path for the current request.
*/
function aksrt_get_current_special_template_path(): string {
if (get_query_var('user_nicename')) {
if (get_query_var('aksrt_author_identifier')) {
return aksrt_get_user_home_template_path();
}