Skip to content

Commit 74fe7c7

Browse files
committed
Update Frontend.php
1 parent 155896d commit 74fe7c7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

includes/Consent/Frontend.php

-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use RRZE\Legal\Utils;
88
use function RRZE\Legal\{plugin, consent};
9-
use const RRZE\PrivateSite\PRIVATE_SITE_OPTION;
109

1110
class Frontend
1211
{
@@ -31,13 +30,6 @@ public static function loaded()
3130
*/
3231
public static function init()
3332
{
34-
if (self::rrzeAccessControlPlugin()) {
35-
Cookies::setEssentialCookie();
36-
return;
37-
} elseif (self::rrzePrivateSitePlugin()) {
38-
return;
39-
}
40-
4133
if (consent()->isBannerActive() || consent()->isTestModeActive()) {
4234
// Add scripts and styles
4335
add_action('wp_enqueue_scripts', [__CLASS__, 'enqueueScripts']);
@@ -190,10 +182,6 @@ public static function rrzePrivateSitePlugin()
190182
return false;
191183
}
192184

193-
if (!defined('PRIVATE_SITE_OPTION') || !get_option(PRIVATE_SITE_OPTION)) {
194-
return false;
195-
}
196-
197185
return true;
198186
}
199187
}

0 commit comments

Comments
 (0)