Commit 74fe7c7 1 parent 155896d commit 74fe7c7 Copy full SHA for 74fe7c7
File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use RRZE \Legal \Utils ;
8
8
use function RRZE \Legal \{plugin , consent };
9
- use const RRZE \PrivateSite \PRIVATE_SITE_OPTION ;
10
9
11
10
class Frontend
12
11
{
@@ -31,13 +30,6 @@ public static function loaded()
31
30
*/
32
31
public static function init ()
33
32
{
34
- if (self ::rrzeAccessControlPlugin ()) {
35
- Cookies::setEssentialCookie ();
36
- return ;
37
- } elseif (self ::rrzePrivateSitePlugin ()) {
38
- return ;
39
- }
40
-
41
33
if (consent ()->isBannerActive () || consent ()->isTestModeActive ()) {
42
34
// Add scripts and styles
43
35
add_action ('wp_enqueue_scripts ' , [__CLASS__ , 'enqueueScripts ' ]);
@@ -190,10 +182,6 @@ public static function rrzePrivateSitePlugin()
190
182
return false ;
191
183
}
192
184
193
- if (!defined ('PRIVATE_SITE_OPTION ' ) || !get_option (PRIVATE_SITE_OPTION )) {
194
- return false ;
195
- }
196
-
197
185
return true ;
198
186
}
199
187
}
You can’t perform that action at this time.
0 commit comments