Skip to content

Commit 2e23488

Browse files
authored
Merge pull request #153 from theSCHAPPY/fix/missing-js-in-gutenberg
Enqueue plugin assets to all admin screens
2 parents 0ea66a6 + 95c9db8 commit 2e23488

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Assets.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(PluginProperties $pluginProperties)
3434
*/
3535
public function enqueueScripts()
3636
{
37-
if ('post' !== get_current_screen()->base) {
37+
if (!is_admin()) {
3838
return;
3939
}
4040

@@ -56,9 +56,9 @@ public function enqueueScripts()
5656
*/
5757
public function enqueueStyles()
5858
{
59-
if ('post' !== get_current_screen()->base) {
59+
if (!is_admin()) {
6060
return;
61-
}
61+
}
6262

6363
$styleFile = '/assets/css/global-media.css';
6464
wp_register_style(

0 commit comments

Comments
 (0)