From bd7226abb642d2230980021edb66f9d4fb1c9b05 Mon Sep 17 00:00:00 2001 From: Linkon Miyan Date: Thu, 1 Aug 2024 12:48:11 +0600 Subject: [PATCH] update admin enqueue versions --- includes/Traits/Admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Traits/Admin.php b/includes/Traits/Admin.php index 6ad42873e..4de32d947 100644 --- a/includes/Traits/Admin.php +++ b/includes/Traits/Admin.php @@ -51,8 +51,8 @@ public function admin_enqueue_scripts( $hook ) { if ( isset( $hook ) && $hook == 'toplevel_page_eael-settings' ) { wp_enqueue_style( 'eael-admin-icon-css', EAEL_PLUGIN_URL . 'includes/templates/admin/icons/style.css', false, EAEL_PLUGIN_VERSION ); - wp_enqueue_style( 'eael-admin-css', EAEL_PLUGIN_URL . 'includes/templates/admin/eael-dashboard/dist/assets/ea-dashboard.css', false, time() ); - wp_enqueue_script( 'eael-admin-dashboard', EAEL_PLUGIN_URL . 'includes/templates/admin/eael-dashboard/dist/assets/ea-dashboard.js', array(), time(), true ); + wp_enqueue_style( 'eael-admin-css', EAEL_PLUGIN_URL . 'includes/templates/admin/eael-dashboard/dist/assets/ea-dashboard.css', false, EAEL_PLUGIN_VERSION ); + wp_enqueue_script( 'eael-admin-dashboard', EAEL_PLUGIN_URL . 'includes/templates/admin/eael-dashboard/dist/assets/ea-dashboard.js', array(), EAEL_PLUGIN_VERSION, true ); add_filter( 'wp_script_attributes', [ $this, 'add_type_attribute' ] ); //Internationalizing JS string translation