修复了一些问题
This commit is contained in:
1 parent
c8d199a694
commit
3dbd196e06
9 files changed
+99
-25
No files matched your search
@@ -68,6 +68,9 @@ if (!function_exists('aksrt_get_header_nav_context')) :
|
||||
$current_user = wp_get_current_user();
|
||||
$user_id = (int) $current_user->ID;
|
||||
$user_desc = $user_id > 0 && function_exists('aksrt_get_user_description') ? aksrt_get_user_description($user_id) : '';
|
||||
$notification_settings = class_exists('\AKSRT\Settings\Settings')
|
||||
? \AKSRT\Settings\Settings::notification_settings()
|
||||
: ['enabled' => false, 'icon_show' => []];
|
||||
|
||||
$ctx = [
|
||||
'settings' => $settings,
|
||||
@@ -88,7 +91,8 @@ if (!function_exists('aksrt_get_header_nav_context')) :
|
||||
'unread_count' => ($user_id > 0 && function_exists('aksrt_get_user_unread_notification_count'))
|
||||
? (int) aksrt_get_user_unread_notification_count($user_id)
|
||||
: 0,
|
||||
'messages_url' => function_exists('aksrt_get_messages_page_url') ? aksrt_get_messages_page_url() : '',
|
||||
'message_icon_positions' => (array) ($notification_settings['icon_show'] ?? []),
|
||||
'messages_url' => !empty($notification_settings['enabled']) && function_exists('aksrt_get_messages_page_url') ? aksrt_get_messages_page_url() : '',
|
||||
'orders_url' => function_exists('aksrt_get_user_center_tab_url') ? aksrt_get_user_center_tab_url('orders') : '',
|
||||
'publish_url' => function_exists('aksrt_get_new_post_url') ? aksrt_get_new_post_url() : admin_url('post-new.php'),
|
||||
'theme_settings_url' => function_exists('aksrt_get_admin_settings_url')
|
||||
|
||||
Reference in new issue
Block a user