Skip to content

Commit

Permalink
Merge pull request #10 from alleyinteractive/feature/class-rename
Browse files Browse the repository at this point in the history
Change the class namespce to reflect the README
  • Loading branch information
srtfisher authored Feb 14, 2024
2 parents ab8e622 + 1b980ff commit 614c5f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
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' );

0 comments on commit 614c5f7

Please sign in to comment.