From 55a7373d869e69666b3bdc3fb778a6e80328ef1c Mon Sep 17 00:00:00 2001 From: Brent Christensen Date: Thu, 28 Jul 2022 12:28:02 -0700 Subject: [PATCH] fix another duplicate handle --- admin_pages/messages/Messages_Admin_Page.core.php | 2 +- admin_pages/payments/Payments_Admin_Page.core.php | 5 +++-- .../services/assets/EspressoLegacyAdminAssetManager.php | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/admin_pages/messages/Messages_Admin_Page.core.php b/admin_pages/messages/Messages_Admin_Page.core.php index 8c03283c028..e2760ab3620 100644 --- a/admin_pages/messages/Messages_Admin_Page.core.php +++ b/admin_pages/messages/Messages_Admin_Page.core.php @@ -990,7 +990,7 @@ public function load_scripts_styles_settings() [], EVENT_ESPRESSO_VERSION ); - wp_enqueue_style('ee-text-links'); + wp_enqueue_style('ee-text-links-css'); wp_enqueue_style('ee-message-settings'); wp_enqueue_script('ee-messages-settings'); } diff --git a/admin_pages/payments/Payments_Admin_Page.core.php b/admin_pages/payments/Payments_Admin_Page.core.php index 93d267172da..26e11a2117a 100644 --- a/admin_pages/payments/Payments_Admin_Page.core.php +++ b/admin_pages/payments/Payments_Admin_Page.core.php @@ -242,6 +242,7 @@ public function load_scripts_styles() { // styles wp_enqueue_style('espresso-ui-theme'); + wp_enqueue_style('ee-text-links-css'); wp_register_style( 'espresso_payments', EE_PAYMENTS_ASSETS_URL . 'ee-payments.css', @@ -250,7 +251,7 @@ public function load_scripts_styles() ); // scripts wp_enqueue_script('ee_admin_js'); - wp_enqueue_script('ee-text-links'); + wp_enqueue_script('ee-text-links-js'); wp_enqueue_script( 'espresso_payments', EE_PAYMENTS_ASSETS_URL . 'espresso_payments_admin.js', @@ -264,7 +265,7 @@ public function load_scripts_styles() public function load_scripts_styles_default() { wp_enqueue_style('espresso_payments'); - wp_enqueue_style('ee-text-links'); + wp_enqueue_style('ee-text-links-css'); } diff --git a/core/domain/services/assets/EspressoLegacyAdminAssetManager.php b/core/domain/services/assets/EspressoLegacyAdminAssetManager.php index 30cf4d2ce8c..1016ffc7efa 100644 --- a/core/domain/services/assets/EspressoLegacyAdminAssetManager.php +++ b/core/domain/services/assets/EspressoLegacyAdminAssetManager.php @@ -35,7 +35,7 @@ class EspressoLegacyAdminAssetManager extends AssetManager const JS_HANDLE_PARSE_URI = 'ee-parse-uri'; - const JS_HANDLE_EE_TEXT_LINKS = 'ee-text-links'; + const JS_HANDLE_EE_TEXT_LINKS = 'ee-text-links-js'; const JS_HANDLE_EE_SERIALIZE_FULL_ARRAY = 'ee-serialize-full-array'; @@ -47,7 +47,7 @@ class EspressoLegacyAdminAssetManager extends AssetManager const CSS_HANDLE_EE_JOYRIDE = 'ee-joyride-css'; - const CSS_HANDLE_EE_TEXT_LINKS = 'ee-text-links'; + const CSS_HANDLE_EE_TEXT_LINKS = 'ee-text-links-css'; const CSS_HANDLE_EE_UI_THEME = 'espresso-ui-theme';