Skip to content

Commit

Permalink
✨ 优化pjax用户中心跳转
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jan 27, 2023
1 parent ba598ba commit 200bb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/fun/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ function pk_get_main_menu($mobile = false)
if (is_user_logged_in()) {
$user = wp_get_current_user();
$avatar = get_avatar_url($user->user_email);
$out .= '<li><a data-no-instant data-bs-toggle="tooltip" title="用户中心" href="' . pk_user_center_url() . '"><img alt="用户中心" src="' . $avatar . '" class="min-avatar"></a></li>';
$out .= '<li><a ' . (pk_is_checked('user_center') ? '' : 'data-no-instant') . ' data-bs-toggle="tooltip" title="用户中心" href="' . pk_user_center_url() . '"><img alt="用户中心" src="' . $avatar . '" class="min-avatar"></a></li>';
} else {
if (pk_is_checked('open_quick_login')) {
$url = pk_ajax_url('pk_font_login_page', ['redirect' => home_url($wp->request)]);
Expand Down

0 comments on commit 200bb5d

Please sign in to comment.