diff --git a/src/Modules/BlockPatternCategoryModule.php b/src/Modules/BlockPatternCategoryModule.php index c18bab8..394d629 100644 --- a/src/Modules/BlockPatternCategoryModule.php +++ b/src/Modules/BlockPatternCategoryModule.php @@ -20,7 +20,7 @@ class BlockPatternCategoryModule extends AbstractModule */ public function handle() { - if (! is_admin() || ! class_exists('WP_Block_Patterns_Registry')) { + if (! class_exists('WP_Block_Patterns_Registry')) { return; } diff --git a/src/Modules/BlockPatternModule.php b/src/Modules/BlockPatternModule.php index 91c204d..5fffa52 100644 --- a/src/Modules/BlockPatternModule.php +++ b/src/Modules/BlockPatternModule.php @@ -25,7 +25,7 @@ class BlockPatternModule extends AbstractModule */ public function handle() { - if (! is_admin() || ! class_exists('WP_Block_Patterns_Registry')) { + if (! class_exists('WP_Block_Patterns_Registry')) { return; }