diff --git a/src/Assets.php b/src/Assets.php index 27e96695..20b6047c 100644 --- a/src/Assets.php +++ b/src/Assets.php @@ -34,7 +34,7 @@ public function __construct(PluginProperties $pluginProperties) */ public function enqueueScripts() { - if ('post' !== get_current_screen()->base) { + if (!is_admin()) { return; } @@ -56,9 +56,9 @@ public function enqueueScripts() */ public function enqueueStyles() { - if ('post' !== get_current_screen()->base) { + if (!is_admin()) { return; - } + } $styleFile = '/assets/css/global-media.css'; wp_register_style(