Created setup environment

This commit is contained in:
2024-02-27 11:33:24 +01:00
parent 18820c7191
commit 40a3b93d4b
6 changed files with 25 additions and 122 deletions

View File

@ -57,13 +57,13 @@ function enable_option_secure_include_dir() : bool {
function enable_option_prohibit_bot_access() {
update_option('protect_wp_prohibit_bot_access', true);
if (count(get_prohibitedbot_list()) == 0) {
set_prohibitedbot_list(_protect_wp_initial_bot_list_array());
}
}
function disable_option_prohibit_bot_access() {
update_option('protect_wp_prohibit_bot_access', false);
if (count(get_prohibitedbot_list()) == 0) {
set_prohibitedbot_list(_protect_wp_initial_bot_list_array());
}
}
function set_prohibitedbot_list($botList) {