wp-cli / scaffold-command

Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
MIT License
165 stars 87 forks source link

Scaffold block doesn't consider child theme #232

Closed edpittol closed 4 years ago

edpittol commented 5 years ago

Summary:

When wp scaffold block is executed to create a block on a child theme, the reference inner the generate PHP file is to the parent.

Step to reproduce:

  1. Run the command wp scaffold block new-block --theme=child-theme
  2. Observe on blocks/new-block.php use get_template_directory* calls instead get_stylesheet_directory*