fix(runtime): remove obsolete jQuery compatibility assets
This commit is contained in:
@@ -146,23 +146,6 @@ function aksrt_is_user_home_page(): bool {
|
||||
}
|
||||
endif;
|
||||
|
||||
if (!function_exists('aksrt_get_profile_url')) :
|
||||
/**
|
||||
* 兼容层:获取用户主页 URL
|
||||
*
|
||||
* @deprecated 使用 aksrt_get_user_center_url() 或 aksrt_get_user_home_url() 替代
|
||||
* @param WP_User|int|string|null $user
|
||||
* @return string
|
||||
*/
|
||||
function aksrt_get_profile_url($user = null): string {
|
||||
// 无参调用 → 当前用户主页(公开页)
|
||||
if ($user === null) {
|
||||
return aksrt_get_user_home_url();
|
||||
}
|
||||
return aksrt_get_user_home_url($user);
|
||||
}
|
||||
endif;
|
||||
|
||||
if (!function_exists('aksrt_get_sign_page_url')) :
|
||||
/**
|
||||
* Get the only public authentication page URL.
|
||||
|
||||
Reference in New Issue
Block a user