PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.4.5
Fluent Support – Helpdesk & Customer Support Ticket System v2.4.5
2.4.5 2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 All 69 releases
← All changes | app/Hooks/Handlers/AdminBarHandler.php +2 -3 1.10.5 → 2.4.5 View file →
@@ -5,8 +5,9 @@
5 5 use FluentSupport\App\App;
6 6 use FluentSupport\App\Modules\PermissionManager;
7 7 use FluentSupport\App\Services\Tickets\TicketStats;
8 8 use FluentSupport\App\Services\Helper;
9 +use FluentSupport\App\Vite;
9 10
10 11 class AdminBarHandler
11 12 {
12 13 public function init()
@@ -24,11 +25,9 @@
24 25 }
25 26
26 27 public function showTicketSummary($adminBar)
27 28 {
28 - $assets = App::getInstance('url.assets');
29 -
30 - wp_enqueue_script('fst_global_summary', $assets . 'admin/js/global_summary.js', ['jquery'], FLUENT_SUPPORT_VERSION);
29 + wp_enqueue_script('fst_global_summary', Vite::getEnqueuePath('admin/js/global_summary.js'), ['jquery'], FLUENT_SUPPORT_VERSION);
31 30
32 31 wp_localize_script('fst_global_summary', 'fst_bar_vars', [
33 32 'rest' => $this->getRestInfo(),
34 33 'links' => (new TicketStats())->getQuickLinks(),