Learn More opens in new tab)', 'wordfence'), wfSupportController::esc_supportURL(wfSupportController::ITEM_DIAGNOSTICS)), array('a' => array('href' => array(), 'target' => array(), 'rel' => array()), 'span' => array('class' => array()))) ?>
getResults() as $title => $tests): $key = sanitize_key('wf-diagnostics-' . $title); $hasFailingTest = false; foreach ($tests['results'] as $result) { $infoOnly = isset($result['infoOnly']) && $result['infoOnly']; if (!$result['test'] && !$infoOnly) { $hasFailingTest = true; break; } } if ($inEmail): ?>
array(), 'strong' => array(), 'em' => array(), 'a' => array('href' => true), 'span' => array('class' => true) ))) ?>


    $result): ?>
  • array(), 'strong' => array(), 'em' => array(), 'a' => array('href' => true), ))) ?>

> 'REMOTE_ADDR', 'HTTP_CF_CONNECTING_IP' => 'CF-Connecting-IP', 'HTTP_X_REAL_IP' => 'X-Real-IP', 'HTTP_X_FORWARDED_FOR' => 'X-Forwarded-For', ); foreach (wfUtils::getAllServerVariableIPs() as $variable => $ip): ?>
{$currentIP}", implode(', ', $output)); } else { echo esc_html($ip); } ?>
> $settingData): $escapedName = esc_html($settingName); $escapedDescription = ''; $escapedValue = __('(not set)', 'wordfence'); if (is_array($settingData)) { $escapedDescription = esc_html($settingData['description']); if (isset($settingData['value'])) { $escapedValue = esc_html($settingData['value']); } } else { $escapedDescription = esc_html($settingData); if (defined($settingName)) { $escapedValue = esc_html(constant($settingName)); } } ?>
> $pluginData): ?>
() -
> $pluginData): ?>
() -
> array( __( 'Advanced caching plugin', 'wordfence' ), 'WP_CACHE' ), // WP_CACHE 'db.php' => array( __( 'Custom database class', 'wordfence' ), true ), // auto on load 'db-error.php' => array( __( 'Custom database error message', 'wordfence' ), true ), // auto on error 'install.php' => array( __( 'Custom installation script', 'wordfence' ), true ), // auto on installation 'maintenance.php' => array( __( 'Custom maintenance message', 'wordfence' ), true ), // auto on maintenance 'object-cache.php' => array( __( 'External object cache', 'wordfence' ), true ), // auto on load 'php-error.php' => array( __( 'Custom PHP error message', 'wordfence' ), true ), // auto on error 'fatal-error-handler.php'=> array( __( 'Custom PHP fatal error handler', 'wordfence' ), true ), // auto on error ); $dropins['sunrise.php' ] = array( __( 'Executed before Multisite is loaded', 'wordfence' ), is_multisite() && 'SUNRISE' ); // SUNRISE $dropins['blog-deleted.php' ] = array( __( 'Custom site deleted message', 'wordfence' ), is_multisite() ); // auto on deleted blog $dropins['blog-inactive.php' ] = array( __( 'Custom site inactive message', 'wordfence' ), is_multisite() ); // auto on inactive blog $dropins['blog-suspended.php'] = array( __( 'Custom site suspended message', 'wordfence' ), is_multisite() ); // auto on archived or spammed blog ?> $data): ?>
()
> $themeData): ?>
() - get_stylesheet()): ?>
> $values) { if (is_array($values)) { foreach ($values as $cron_job => $v) { if (is_numeric($timestamp)) { $overdue = ((time() - 1800) > $timestamp); ?> >
(' . esc_html__('Overdue', 'wordfence') . ')' : '') ?>
querySelect('SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() ORDER BY TABLE_NAME ASC LIMIT 250'); $total = $wfdb->querySingle('SELECT COUNT(*) FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE()'); foreach ($tables as &$t) { $t = "'" . esc_sql($t['TABLE_NAME']) . "'"; } unset($t); $q = $wfdb->querySelect("SHOW TABLE STATUS WHERE Name IN (" . implode(',', $tables) . ')'); if ($q): $databaseCols = count($q[0]); ?>
  • 250): ?>
> = 250 && $total > $count) { ?>
> $readable): ?> format('M j, Y G:i:s') . ' ' . __('UTC', 'wordfence'); } } $shortLog = $log; if (strpos($shortLog, ABSPATH) === 0) { $shortLog = '~/' . substr($shortLog, strlen(ABSPATH)); } ?>
' . esc_html__('Download', 'wordfence') . ' (' . esc_html__('opens in new tab', 'wordfence') . ')' : '' . esc_html__('Requires downloading from the server directly', 'wordfence') . ''); ?>
' . esc_html__('Scan Issues', 'wordfence') . "\n"; $issues = wfIssues::shared()->getIssues(0, 50, 0, 50); $issueCounts = array_merge(array('new' => 0, 'ignoreP' => 0, 'ignoreC' => 0), wfIssues::shared()->getIssueCounts()); $issueTypes = wfIssues::validIssueTypes(); echo '

' . esc_html(sprintf(/* translators: Number of scan issues. */ __('New Issues (%d total)', 'wordfence'), $issueCounts['new'])) . "

\n"; if (isset($issues['new']) && count($issues['new'])) { foreach ($issues['new'] as $i) { if (!in_array($i['type'], $issueTypes)) { continue; } $viewContent = ''; try { $viewContent = wfView::create('scanner/issue-' . $i['type'], array('textOutput' => $i))->render(); } catch (wfViewNotFoundException $e) { //Ignore -- should never happen since we validate the type } if (!empty($viewContent)) { echo nl2br($viewContent) . "

\n"; } } } else { echo '

' . esc_html__('No New Issues', 'wordfence') . "

\n"; } } ?>
> $settingData): if (isset($settingData['subheader'])) { ?>
> $settingData): if (isset($settingData['subheader'])) { ?>
' . esc_html__('Unable to output phpinfo content because it is disabled', 'wordfence') . "\n"; } ?>
  • 'debugOn', 'enabledValue' => 1, 'disabledValue' => 0, 'value' => $w->get('debugOn') ? 1 : 0, 'title' => __('Enable debugging mode (increases database load)', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DIAGNOSTICS_OPTION_DEBUGGING_MODE), ))->render(); ?>
  • 'startScansRemotely', 'enabledValue' => 1, 'disabledValue' => 0, 'value' => $w->get('startScansRemotely') ? 1 : 0, 'title' => __('Start all scans remotely (Try this if your scans aren\'t starting and your site is publicly accessible)', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DIAGNOSTICS_OPTION_REMOTE_SCANS), ))->render(); ?>
  • 'ssl_verify', 'enabledValue' => 1, 'disabledValue' => 0, 'value' => $w->get('ssl_verify') ? 1 : 0, 'title' => __('Enable SSL Verification (Disable this if you are consistently unable to connect to the Wordfence servers.)', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DIAGNOSTICS_OPTION_SSL_VERIFICATION), ))->render(); ?>
  • 'avoid_php_input', 'enabledValue' => 1, 'disabledValue' => 0, 'value' => wfWAF::getInstance()->getStorageEngine()->getConfig('avoid_php_input', false) ? 1 : 0, 'title' => __('Disable reading of php://input', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DIAGNOSTICS_OPTION_DISABLE_PHP_INPUT), ))->render(); ?>
  • 'wordfenceI18n', 'enabledValue' => 1, 'disabledValue' => 0, 'value' => $w->get('wordfenceI18n') ? 1 : 0, 'title' => 'Enable Wordfence translations', 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DIAGNOSTICS_OPTION_WORDFENCE_TRANSLATIONS), ))->render(); ?>