Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent naming the plugin 'lean' #32

Open
zzuga opened this issue May 26, 2016 · 0 comments
Open

Prevent naming the plugin 'lean' #32

zzuga opened this issue May 26, 2016 · 0 comments
Labels

Comments

@zzuga
Copy link
Collaborator

zzuga commented May 26, 2016

Steps to reproduce and a minimal demo of the problem

Run the new-wp-plugin generator as described here and name the plugin 'lean'

Current behavior

You will notice the the Acf helper functions stop working.

Expected/desired behavior

Acf helper functions should keep on working.

Other information

The namespace for the generated wp-plugin/src/Acf.php is conflicting with the one for wp-acf package, so none of the Acf helper functions work. Running composer install says:

Warning: Ambiguous class resolution, "Lean\Acf" was found in both "$baseDir . '/src/Acf.php" and "/var/www/api.lean.dev/htdocs/wp-content/plugins/lean/vendor/moxie-lean/wp-acf/src/Acf.php", the first will be used.

@mitogh mitogh added the bug label May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants