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

[Release] 2.0.1 #28

Merged
merged 3 commits into from
Mar 8, 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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## v2.0.1 - 2024.03.09

### Fixed

- Remove some typing that can cause errors at runtime ([6053ce0](https://github.com/studiometa/wp-toolkit/commit/6053ce0))

## v2.0.0 - 2024.03.08

### Added
Expand Down
6 changes: 3 additions & 3 deletions src/Helpers/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ private function __construct()
{
early_add_filter(
'option_active_plugins',
function (array $plugins) {
function ($plugins) {
return self::do_disabling($plugins);
}
);
early_add_filter(
'site_option_active_sitewide_plugins',
function (array $plugins) {
function ($plugins) {
return self::do_network_disabling($plugins);
}
);
Expand All @@ -61,7 +61,7 @@ function (array $plugins) {
*
* @return string[] The filtered array of plugin filenames
*/
private static function do_disabling(array $plugins): array
private static function do_disabling($plugins): array
{
if (count(self::$disabled_plugins)) {
foreach (self::$disabled_plugins as $disabled_plugin) {
Expand Down
Loading