You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method \Roots\Bedrock\Autoloader::countPlugins is returning a wrong number of mu-plugins if the mu-plugin isn't one.
Because the way of WordPress is counting mu-plugin is not the same as yours, the number can be wrong in the case of the folder on mu-plugins doesn't contains a php file with WordPress headers.
Description
Hello,
The method \Roots\Bedrock\Autoloader::countPlugins is returning a wrong number of mu-plugins if the mu-plugin isn't one.
Because the way of WordPress is counting mu-plugin is not the same as yours, the number can be wrong in the case of the folder on mu-plugins doesn't contains a php file with WordPress headers.
Steps to reproduce
Expected behavior:
That only the real mu-plugins loaded by WordPress are effectively counted with get_plugins function.
Actual behavior:
The glob only counts the folders.
Reproduces how often:
100%
Versions
1.0.1, but the code haven't changed since.
Maybe strip away the mu-plugins without header to have the right count ?
The text was updated successfully, but these errors were encountered: