Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Plugin subgenerator installs target in child folder #169

Open
tyler-morrison opened this issue Aug 4, 2015 · 4 comments
Open

Plugin subgenerator installs target in child folder #169

tyler-morrison opened this issue Aug 4, 2015 · 4 comments
Labels

Comments

@tyler-morrison
Copy link

Whenever you run the WordPress plugin subgenerator, it installs the plugin within a subfolder that cannot be automatically recognized by the WP install.

If you run the following process...

cd ~/my-wordpress-project-folder
yo wordpress:plugin

? Plugins to install (ex. wordpress-importer, wp-custom-admin-bar) akismet
     info ... Fetching http://downloads.wordpress.org/plugin/akismet.zip ...
     info This might take a few moments
.✔ Done in content/plugins/akismet
✔ Plugins installed.

...it installs the plugin within "content/plugins/akistmet/akistmet"

This could be a result of using a custom dir.

@wesleytodd
Copy link
Owner

A PR to fix this would be gladly accepted if anyone is interested :)

@wesleytodd wesleytodd added the bug label Aug 5, 2015
@nocean
Copy link
Contributor

nocean commented Dec 10, 2015

Tried lweigand's fix, works perfectly.

@ghost ghost mentioned this issue Aug 4, 2016
@ghost
Copy link

ghost commented Aug 4, 2016

Plugin issue ( issue #175 and #169 )has been resolved.
It is working fine.
Tested and Verfied

@erwstout
Copy link

erwstout commented Jan 25, 2017

Just pinging this issue again, installing plugins still place them in /plugins/{plugin-name}/{plugin-name}

I could possibly take a look to do a PR but not sure if its in my wheelhouse. Any other thoughts or work arounds?

EDIT: Just saw this PR #184 is it ever going to get merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants