We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b846408 commit 9e16cc3Copy full SHA for 9e16cc3
2 files changed
src/BlockPattern/Application/Services/PatternService.php
@@ -90,7 +90,7 @@ private function registerPatterns(): void
90
91
$theme = $this->themeService->theme();
92
93
- if (! function_exists('get_stylesheet_directory')) {
+ if (! function_exists('get_stylesheet_directory') || ! $theme) {
94
return;
95
}
96
src/Discovery/Infrastructure/Services/DiscoveryEngine.php
@@ -240,6 +240,9 @@ private function discoverPaths(DiscoversPathInterface $discovery): void
240
241
/** @var SplFileInfo $file */
242
foreach ($iterator as $file) {
243
+ echo '<pre>';
244
+ var_dump($file);
245
+ echo '</pre>';
246
if ($file->isFile()) {
247
$discovery->discoverPath($location, $file->getPathname());
248
0 commit comments