Skip to content

Commit

Permalink
fix: Remove is_admin() condition on black patterns & block categori…
Browse files Browse the repository at this point in the history
…es (#40)
  • Loading branch information
ouun committed Jun 13, 2022
1 parent b5225e9 commit 709c535
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Modules/BlockPatternCategoryModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Modules/BlockPatternModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 709c535

Please sign in to comment.