Preparation fpr new mareike & solea module

This commit is contained in:
2024-07-30 23:06:59 +02:00
parent 19a10e5704
commit 5e107d36ca
10 changed files with 177 additions and 206 deletions

View File

@ -28,8 +28,7 @@ class Security
$loginUrl = get_option('whl_page', null) ?? 'bdp-login';
}
enable_option_rewrite_url($loginUrl);
enable_option_disable_xmlrpc();
enable_option_disable_xmlrpc();
enable_option_block_authorscan();
enable_option_block_execution_in_uploads();
enable_option_prohibit_special_files();
@ -83,12 +82,17 @@ class Security
public static function SetPageFilters() {
global $wp;
if (str_contains($_SERVER['REQUEST_URI'], 'wp-login.php?action=logout')) {
return;
add_action('template_redirect', [Security::class, 'protectAuthorScan']);
if (null !== is_login_rewritten()) {
if (str_contains($_SERVER['REQUEST_URI'], 'wp-login.php?action=logout')) {
return;
}
add_action('template_redirect', [Security::class, 'protectAuthorScan']);
Security::protectLoginSecurity();
Security::protectLoginSecurity();
}
}
public static function protectLoginSecurity() {