Remove specific code for WP 6.2 and lower

[MAILPOET-5713]
This commit is contained in:
Jan Lysý
2023-12-05 16:14:38 +01:00
committed by Aschepikov
parent e371ec03b9
commit a1b1a6f674

View File

@@ -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'),