From f83518687cb880b7efbc3f36b8ead09effa493c4 Mon Sep 17 00:00:00 2001 From: Nicolas Lemoine Date: Thu, 4 Jul 2024 11:41:53 +0200 Subject: [PATCH] Fix `wpstarter.skip-cache-env` arguments --- src/Env/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Env/Helpers.php b/src/Env/Helpers.php index 3892f12..37997d7 100644 --- a/src/Env/Helpers.php +++ b/src/Env/Helpers.php @@ -131,7 +131,7 @@ final public static function shouldCacheEnv(): bool if (!did_action('plugins_loaded')) { return !$skip; } - static::$shouldCache = !apply_filters('wpstarter.skip-cache-env', $skip); + static::$shouldCache = !apply_filters('wpstarter.skip-cache-env', $skip, $env); } return static::$shouldCache;