Skip to content

Commit

Permalink
Merge pull request #139 from nlemoine/fix-skip-cache-args
Browse files Browse the repository at this point in the history
Fix `wpstarter.skip-cache-env` arguments
  • Loading branch information
gmazzap authored Jul 18, 2024
2 parents cb0967a + f835186 commit 736cb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Env/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 736cb35

Please sign in to comment.