Skip to content

Commit 129bb04

Browse files
feat(ajax): Revert ajax request non bouncing as DOING_AJAX can be defined in frontend too
1 parent bed6ad9 commit 129bb04

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8-
## [2.1.0](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v2.1.0) - 2023-02-16
9-
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v2.0.0...v2.1.0)
10-
11-
### Changed
12-
13-
- Do not bounce admin AJAX request
8+
## [2.0.1](https://github.com/crowdsecurity/cs-wordpress-bouncer/releases/tag/v2.0.1) - 2023-02-16
9+
[_Compare with previous release_](https://github.com/crowdsecurity/cs-wordpress-bouncer/compare/v2.0.0...v2.0.1)
1410

1511
### Fixed
1612
- Fix bad memcached dsn check

inc/Bouncer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,6 @@ public function shouldBounceCurrentIp(): bool
267267
if (PHP_SAPI === 'cli') {
268268
return false;
269269
}
270-
// Don't bounce admin ajax request
271-
if(defined('DOING_AJAX')){
272-
return false;
273-
}
274270

275271
// when the "crowdsec_public_website_only" is disabled...
276272
if ($this->shouldNotBounceWpAdmin) {

0 commit comments

Comments
 (0)