From a1b1a6f674a7a1f842f2df7bcccc3c5f2e1a26b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lys=C3=BD?= Date: Tue, 5 Dec 2023 16:14:38 +0100 Subject: [PATCH] Remove specific code for WP 6.2 and lower [MAILPOET-5713] --- mailpoet/lib/Form/AssetsController.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mailpoet/lib/Form/AssetsController.php b/mailpoet/lib/Form/AssetsController.php index a1659474a3..60bbe23b6d 100644 --- a/mailpoet/lib/Form/AssetsController.php +++ b/mailpoet/lib/Form/AssetsController.php @@ -83,12 +83,6 @@ class AssetsController { 'strategy' => 'defer', ]; - // BC for WP < 6.3 - Can be removed after we drop support for WP 6.2 - global $wp_version; - if (version_compare($wp_version, '6.3', '<')) { - $enqueuePlacementParams = true; - } - $this->wp->wpEnqueueScript( 'mailpoet_public', Env::$assetsUrl . '/dist/js/' . $this->renderer->getJsAsset('public.js'),