Skip to content

Commit 32b7fab

Browse files
authored
Merge pull request #20 from inpsyde/fix/typo-filter_var
Fix typo FILTER_VALIDATE_BOOL in bypass logic
2 parents 8c7ea85 + d769b23 commit 32b7fab

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#### dev-master
44

5+
#### 3.2.3
6+
* Fix: Typo in bypass logic, [#19](https://github.com/inpsyde/WP-Stash/issues/19)
7+
58
#### 3.2.2
69
* Fix: `wp_cache_*` functions are no longer declared on `WP_STASH_BYPASS`
710

src/WpStash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private function ensureDropIn(): bool
212212
unlink(__FILE__);
213213
return;
214214
}
215-
if (filter_var(getenv('WP_STASH_BYPASS'), FILTER_VALIDATE_BOOL) === false) {
215+
if (filter_var(getenv('WP_STASH_BYPASS'), FILTER_VALIDATE_BOOLEAN) === false) {
216216
require_once '%1$s';
217217
}
218218

0 commit comments

Comments
 (0)