You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
When creating a block with more than a single word, the view is not loaded.
Steps to reproduce
$ wp acorn acf:block NewExampleBlock
Possible fix
I'm not too familiar with the library to fix this, but perhaps if the generated block/widget/partial $name added the spaces, the view would be found. It's not really a problem manually updating it, as I'd edit the name anyways, but it has caught me out a few times! Especially before I knew what the issue was.
# app/Blocks/NewExampleBlock.php- public $name = 'NewExampleBlock';+ public $name = 'New Example Block';
The text was updated successfully, but these errors were encountered:
Summary
When creating a block with more than a single word, the view is not loaded.
Steps to reproduce
Possible fix
I'm not too familiar with the library to fix this, but perhaps if the generated block/widget/partial
$name
added the spaces, the view would be found. It's not really a problem manually updating it, as I'd edit the name anyways, but it has caught me out a few times! Especially before I knew what the issue was.The text was updated successfully, but these errors were encountered: