v4.2.1 #1

Merged
th.guenther merged 8 commits from v4.2.1 into main 2024-02-27 12:00:25 +01:00
3 changed files with 22 additions and 14 deletions
Showing only changes of commit bb741539f6 - Show all commits

View File

@ -2,7 +2,7 @@
add_action( 'plugins_loaded', 'bdp_kompass_load_plugin_textdomain' );
register_activation_hook(__FILE__, 'bdp_plugin_install');
register_activation_hook(BDP_LV_STARTUP_FILE, 'bdp_plugin_install');
add_action('init', 'bdp_plugin_init');

View File

@ -8,15 +8,14 @@ use ZipArchive;
class Security
{
public const required_security_plugins = [
'wps_hide_login' => ['downloadUrl' => 'https://downloads.wordpress.org/plugin/wps-hide-login.1.9.10.zip'],
];
public const required_security_plugins = [];
public const delete_plugins = [
'akismet/akismet.php',
'hello.php',
'limit-login-attempts-reloaded'
'limit-login-attempts-reloaded',
'wps-hide-login/wps-hide-login.php'
];
public static function setup()
@ -28,8 +27,17 @@ class Security
}
}
$loginUrl = get_option('whl_page', 'bdp_login');
update_option('whl_page', $loginUrl);
$loginUrl = get_option('whl_page', null) ?? 'bdp-login';
enable_option_rewrite_url($loginUrl);
enable_option_disable_xmlrpc();
enable_option_block_authorscan();
enable_option_block_execution_in_uploads();
enable_option_prohibit_special_files();
enable_option_file_editor();
enable_option_disable_conatenation();
enable_option_secure_include_dir();
enable_option_prohibit_bot_access();
enable_option_block_directory_listing();
}

View File

@ -11,7 +11,7 @@ class Security
public const delete_plugins = [
'akismet/akismet.php',
'hello.php',
'wps_hide_login',
'wps-hide-login/wps-hide-login.php',
'limit-login-attempts-reloaded'
];