Created setup environment
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user