Skip to content

Scaffold block doesn't consider child theme #232

@edpittol

Description

@edpittol

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*

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions