'default', 'title' => __( "Debug.log", 'really-simple-ssl' ), 'text' => __( "Changed debug.log location to:", 'really-simple-ssl' ).$location, ]; } } } if ( $field_id==='disable_indexing' ){ if ( !rsssl_directory_indexing_allowed() && !$field['value']) { $field['value'] = true; $field['disabled'] = true; } } if ( $field_id==='disable_anyone_can_register' ){ if ( !get_option('users_can_register') && !$field['value'] ) { $field['value'] = true; $field['disabled'] = true; } } if ( $field_id==='disable_http_methods' ){ if ( !rsssl_http_methods_allowed() && !$field['value'] ) { $field['value'] = true; $field['disabled'] = true; } } if ( $field_id==='disable_file_editing' ){ if ( defined('DISALLOW_FILE_EDIT') && DISALLOW_FILE_EDIT && !$field['value'] ) { $field['value'] = true; $field['disabled'] = true; } } if ( $field_id==='block_code_execution_uploads' ){ if ( !rsssl_code_execution_allowed() && !$field['value'] ) { $field['value'] = true; $field['disabled'] = true; } } if ( $field_id==='disable_xmlrpc' ){ if ( !rsssl_xmlrpc_enabled() && !$field['value'] ) { $field['value'] = true; $field['disabled'] = true; } } if ( $field_id==='rename_db_prefix' ){ if ( !rsssl_is_default_wp_prefix() && !$field['value'] ) { $field['value'] = true; $field['disabled'] = true; } } return $field; } add_filter('rsssl_field', 'rsssl_disable_fields', 10, 2);