diff --git a/CHANGELOG.md b/CHANGELOG.md index ce0f4ef..106c21d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,16 @@ All notable changes to `WP Plugin Loader` will be documented in this file. -## 0.1.2 - 2024-02-09 +## 0.1.3 - 2024-02-14 +- Changes class from `Alley\WP\WP_Plugin_Loader\WP_Plugin_Loader` to + `Alley\WP\WP_Plugin_Loader`. - Account for some one-off plugins that don't follow the standard naming conventions. +# 0.1.2 - 2023-07-25 + +- Ensure a plugin can be discovered from mu-plugins on a non-VIP environment. + ## 0.1.1 - 2023-07-24 - Added APCu caching for plugin folder lookups. diff --git a/src/class-wp-plugin-loader.php b/src/class-wp-plugin-loader.php index 2bf16d1..adc6cf2 100644 --- a/src/class-wp-plugin-loader.php +++ b/src/class-wp-plugin-loader.php @@ -5,7 +5,7 @@ * @package wp-plugin-loader */ -namespace Alley\WP\WP_Plugin_Loader; +namespace Alley\WP; /** * WordPress Plugin Loader @@ -308,3 +308,6 @@ public function prevent_plugin_activation( $caps, $cap ) { return $caps; } } + +// Include an alias for legacy references to the former class namespace. +class_alias( WP_Plugin_Loader::class, 'Alley\WP\WP_Plugin_Loader\WP_Plugin_Loader' );