function sucuriscan_settings_corefiles_language($nonce) { $params = array(); $languages = SucuriScan::languages(); if ($nonce) { // Configure the language for the core integrity checks. if ($language = SucuriScanRequest::post(':set_language')) { if (array_key_exists($language, $languages)) { $message = 'Language for the core integrity checks set to <code>' . $language . '</code>'; SucuriScanOption::update_option(':language', $language); SucuriScanEvent::report_auto_event($message); SucuriScanEvent::notify_event('plugin_change', $message); SucuriScanInterface::info($message); } else { SucuriScanInterface::error('Selected language is not supported.'); } } } $language = SucuriScanOption::get_option(':language'); $params['Integrity.LanguageDropdown'] = SucuriScanTemplate::selectOptions($languages, $language); $params['Integrity.WordPressLocale'] = get_locale(); return SucuriScanTemplate::getSection('settings-corefiles-language', $params); }