fix(theme): repair page display frontend regressions

This commit is contained in:
2026-08-19 00:14:58 +08:00
parent 1436232a34
commit 55571648a0
3 changed files with 14 additions and 2 deletions
-2
View File
@@ -527,7 +527,6 @@ trait ScriptsPart1c {
// 用户状态
'isLoggedIn' => is_user_logged_in(),
'userId' => get_current_user_id(),
'cartUrl' => $runtime_routes['cart'],
'ordersUrl' => $runtime_routes['orders'],
'userCenterUrl' => function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url() : home_url('/'),
'routes' => [
@@ -536,7 +535,6 @@ trait ScriptsPart1c {
'register' => function_exists('aksrt_get_register_url') ? aksrt_get_register_url() : wp_registration_url(),
'resetPassword' => function_exists('aksrt_get_reset_password_url') ? aksrt_get_reset_password_url() : wp_lostpassword_url(),
'profile' => function_exists('aksrt_get_user_center_url') ? aksrt_get_user_center_url() : home_url('/profile/'),
'cart' => $runtime_routes['cart'],
'orders' => $runtime_routes['orders'],
'resources' => $runtime_routes['resources'],
],