Skip to content

Commit

Permalink
Merge tag '2.0.1' into develop
Browse files Browse the repository at this point in the history
v2.0.1
  • Loading branch information
titouanmathis committed Mar 8, 2024
2 parents 97c1df4 + dce4ea8 commit 2ebb179
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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

0 comments on commit 2ebb179

Please sign in to comment.