-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add support for must use state of AspireUpdate #79
Comments
I noticed the license of this code is MIT. Do we want to mix licenses in one project? |
We won't use that code |
@afragen why is the code MIT licensed? Why license at all and not just submit to the project as gpl? |
MIT license is the least restrictive license. |
FYI: This code was written months ago, and licensing it with the least restrictive license made sense to ensure that it could be used without concerns. @namithj Can you expand on "We won't use that code"? |
We need to build a class and our scenario just focuses on this plugin to follow the coding convention used elsewhere in the plugin. Our use case is way simpler |
Just some background on the mu-loader. |
I'm having second thoughts on how this should be implemented.
As an alternative, I think we should include the MU Loader file in |
This was my original position on this matter, MU should only be for people who know what they are getting into and know how to get out of it if things go wrong. Let's just provide the loader and instructions on how to set this up as an MU plugin. |
Sounds good. I assume this is the loader code @afragen provided. https://gist.github.com/afragen/9117fd930d9be16be8a5f450b809dfa8 I believe I can add the path to the plugin loader file into the array as per comments. Other than placing it in the appropriate directory, how should it be called from the plugin? |
Yes it's the same loader code, though technically @costdev and I both wrote it. 😉 |
No need for it to be called from the plugin. Once the site owner places the file in the |
@asirota I've added a PR as there were some more minor changes needed (such as changing the plugin name and description headers, the namespace to avoid clashes, the PHPCS exclusion, etc). |
Introduce a flag to enable must use loader file. @costdev and @afragen made a generic mu-loader plugin that loads plugins from wp-content/plugins as mu-plugins yet still allows them to be updated.
https://gist.github.com/afragen/9117fd930d9be16be8a5f450b809dfa8
Flag is a Boolean constant
AP_MUST_USE
to enable this functionally.The text was updated successfully, but these errors were encountered: