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

Bug: Autoloader fails is there is no plugins folder #30

Open
5 tasks done
jay-oswald opened this issue Feb 14, 2022 · 0 comments
Open
5 tasks done

Bug: Autoloader fails is there is no plugins folder #30

jay-oswald opened this issue Feb 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jay-oswald
Copy link

Terms

Description

What's wrong?

If there is no plugins folder then the autoloader does not work to autoload the mu-plugins. This is an issue as we make sites using bedrock for clients, we put every necessary plugin for the site to function as a mu-plugin via composer/bedrock, then when we deploy we exclude the plugins folder from deploy. This provides us 2 benefits, we can put dev plugins in plugins to help for dev, and clients can add/update their own plugins (or 3rd parties like seo companies) and they do not get effected by new deploys. Because of this initial deploys do not have a plugins folder. This does not appear to be a WordPress issue as the built in functions do not seam to throw any errors, and work as you would expect.

What have you tried?

Creating an empty plugins folder fixes it. Removing it again brings back the issue.

What insights have you gained?

Possible solutions

Temporary workarounds

Create an empty plugins folder.

Steps To Reproduce

  1. Have folders in the mu-plugins folder that get autoloaded
  2. Delete the plugins folder
  3. mu-plugins will no longer load

Expected Behavior

Autoloader should load the mu-plugins regardless of the plugins folder, as it does not seam relevant.

Actual Behavior

mu-plugins do not get loaded if there is no plugins folder

Relevant Log Output

No response

Versions

1.0.4

@jay-oswald jay-oswald added the bug Something isn't working label Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant