-
Notifications
You must be signed in to change notification settings - Fork 85
Description
Bug Report
I am trying to create a child theme using the following command:
wp scaffold child-theme child-slug --parent_theme=parent-slug --theme_name="My child theme" --activate --path=../mywpsite/
It then throws this error:
Error: Invalid theme slug specified. The target directory '/home/clients/0000000000/myfolder/../mywpsite/wp-content/themes/child-slug' is not in '/home/clients/0000000000/myfolder/../mywpsite/wp-content/themes'.
- The command is being run from the folder ~/myfolder/
- The target wordpress install is located in ~/mywpsite/ so I need to set --path=../mywpsite/
However, if I execute the command directly from the ~/mywpsite/ folder, it works fine, but the folder has to exist before or I get the following error.
Success: Created '/home/clients/0000000000/mywpsite/wp-content/themes/child-slug'.
Error: The theme directory "child-slug" does not exist.
BUT, the folder AND files still have been created.
That being said, I need to have it work with the --path argument, so I'm assuming this is a bug.
How can this be fixed ?
Thank you