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

Change the class namespce to reflect the README #10

Merged
merged 4 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion src/class-wp-plugin-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package wp-plugin-loader
*/

namespace Alley\WP\WP_Plugin_Loader;
namespace Alley\WP;

/**
* WordPress Plugin Loader
Expand Down Expand Up @@ -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' );
Loading