diff --git a/CHANGELOG.md b/CHANGELOG.md index 68db2aa..cb03294 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Helpers/Plugin.php b/src/Helpers/Plugin.php index e2f6bc3..f2c0b12 100644 --- a/src/Helpers/Plugin.php +++ b/src/Helpers/Plugin.php @@ -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); } ); @@ -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) {