Skip to content

Commit ce216bc

Browse files
feat(bounce): Do not throw exception if empty api or url key as it happens after a fresh activation
1 parent 8d41671 commit ce216bc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

inc/bouncer-instance-standalone.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,6 @@ function getBouncerInstanceStandalone(array $configs, bool $forceReload = false)
105105
if (!$forceReload && $crowdSecBouncer) {
106106
return $crowdSecBouncer;
107107
}
108-
$apiUrl = $configs['api_url'];
109-
// Parse WordPress Options.
110-
if (empty($apiUrl)) {
111-
throw new BouncerException('Bouncer enabled but no API URL provided');
112-
}
113-
114-
$apiKey = $configs['api_key'];
115-
if (empty($apiKey)) {
116-
throw new BouncerException('Bouncer enabled but no API key provided');
117-
}
118108

119109
// Init Bouncer instance
120110
$bouncingLevel = $configs['bouncing_level'];

0 commit comments

Comments
 (0)