https://github.com/littlebizzy/autoloader
Loads folder WordPress MU plugins
https://github.com/littlebizzy/autoloader
wordpress wordpress-mu-plugin
Last synced: 9 months ago
JSON representation
Loads folder WordPress MU plugins
- Host: GitHub
- URL: https://github.com/littlebizzy/autoloader
- Owner: littlebizzy
- License: gpl-3.0
- Created: 2017-09-20T23:40:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T11:20:50.000Z (over 1 year ago)
- Last Synced: 2025-05-07T19:58:34.031Z (9 months ago)
- Topics: wordpress, wordpress-mu-plugin
- Language: PHP
- Homepage: https://bizzy.in/autoloader
- Size: 61.5 KB
- Stars: 16
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.md
Awesome Lists containing this project
README
# Autoloader
Loads folder WordPress MU plugins
## Changelog
### 2.0.0
- code totally refactored for better efficiency
- no more namespaces, only class `Autoloader`
- `littlebizzy_autoloader` option now called `autoloader_cache`
- supports PHP 7.0 to PHP 8.3
- supports Multisite
### 1.2.1
* HOTFIX: `PHP Fatal error: Uncaught TypeError: Return value of LittleBizzy\Autoloader\Autoloader::countPlugins() must be of the type string, integer returned in /var/www/html/wp-content/mu-plugins/autoloader.php:198`
### 1.2.0
* added PHP `strict_types`
* dropped support for PHP 5.x and earlier versions
* various code optimization
### 1.1.0
* tested with PHP 7.0, 7.1, 7.2
* revised code with new PHP namespaces
* changed `wp_options` name to `littlebizzy_autoloader`
* optimized plugin code (e.g. prevent direct calls, minify `wp_options` data, etc)
* improved "duplicate queries" issue: *Effectively when the local plugin option cache is empty (or it is added or removed a mu-plugin directory), there is a double call to the updateCache method that duplicates the query (originated from the pluginsCount method)... There is only one scenario when this double call is made on purpose: the must-use plugins screen, where calls the updatecache method to retrieve all plugins info to show the autoloaded plugins list.*
### 1.0.0
* forked from Roots Bedrock (no functional differences)
* tweaked plugin meta