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

Fix specific license in a plugin #198

Closed
wants to merge 1 commit into from

Conversation

ponsfrilus
Copy link
Contributor

The doc says:

If a plugin or theme specifies a license in their main plugin file or stylesheet, the comment looks like
this: 
Copyright (C) 2018 Example Plugin Author
This file is distributed under the GPLv2.

but it dosen't seems to work for plugins. It looks like the "License" param in get_file_headers was missing.

The doc says: 
```
If a plugin or theme specifies a license in their main plugin file or stylesheet, the comment looks like
this: 
Copyright (C) 2018 Example Plugin Author
This file is distributed under the GPLv2.
```
but it dosen't seems to work for plugins. It looks like the "License" param in get_file_headers was missing.
@ponsfrilus ponsfrilus requested a review from a team as a code owner December 11, 2019 15:16
@swissspidy
Copy link
Member

Thanks for your PR, @ponsfrilus!

Would you be up for providing a Behat test for this change?

@ponsfrilus
Copy link
Contributor Author

ponsfrilus commented Dec 12, 2019

@swissspidy I've got some trouble generating a test plugin with a specific license (in the Behat test suite), see wp-cli/scaffold-command/issues/246.

@ponsfrilus
Copy link
Contributor Author

@swissspidy please see the PR #199 — should be OK now. And sorry for duplicating it, it was not intended.

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

Successfully merging this pull request may close these issues.

3 participants