-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Architecture: Interaction with mu-plugins #2
Comments
In all likelihood plugin dependencies won't handle this situation.
|
I don't think that mu-plugins is something that should be handled by the plugin-dependencies implementation... |
There are three types of mu-plugins:
Case 1 doesn't matter here I feel, as although I'm sure some would want to use it, it seems like a reasonable thing to skip. 3 can probably be worked around by filtering |
I think checking mu-plugins for the existence of dependencies would be extremely helpful and is a very valid use case. Rather than bundling developer plugins like CMB2 or ACF into themes and plugins, putting them into mu-plugins makes a lot of sense to manage duplicity without overwhelming the admin dashboard. With |
@dd32 I think @costdev and I have written a loader that solves Case 3. https://core.trac.wordpress.org/ticket/60504#comment:15 https://gist.github.com/afragen/9117fd930d9be16be8a5f450b809dfa8 |
Doesn't the Worker plugin from ManageWP install an MU plugin? |
Yes and no. It does add a loader file to
Also from the description:
So this seems more like a file intended for loading ManageWP - Worker earlier than "normal" plugins. ManageWP - Worker itself is installed in As such, it's detected as a dependency by Plugin Dependencies: |
In WordPress, a plugin placed in the mu-plugins folder isn't considered active or installed, ie
In my experience, a plugin dependent on another has used a callback to check if it is present:
How will the plugin dependencies handle such a situation gracefully?
The text was updated successfully, but these errors were encountered: