Skip to content

Commit

Permalink
Merge pull request #20 from inpsyde/fix/typo-filter_var
Browse files Browse the repository at this point in the history
Fix typo FILTER_VALIDATE_BOOL in bypass logic
  • Loading branch information
dnaber-de committed Nov 3, 2020
2 parents 8c7ea85 + d769b23 commit 32b7fab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#### dev-master

#### 3.2.3
* Fix: Typo in bypass logic, [#19](https://github.com/inpsyde/WP-Stash/issues/19)

#### 3.2.2
* Fix: `wp_cache_*` functions are no longer declared on `WP_STASH_BYPASS`

Expand Down
2 changes: 1 addition & 1 deletion src/WpStash.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private function ensureDropIn(): bool
unlink(__FILE__);
return;
}
if (filter_var(getenv('WP_STASH_BYPASS'), FILTER_VALIDATE_BOOL) === false) {
if (filter_var(getenv('WP_STASH_BYPASS'), FILTER_VALIDATE_BOOLEAN) === false) {
require_once '%1$s';
}
Expand Down

0 comments on commit 32b7fab

Please sign in to comment.