: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'dismissAutoPrependNotice',
case self::OPTIONS_TYPE_BLOCKING:
'displayTopLevelBlocking',
case self::OPTIONS_TYPE_SCANNER:
'lowResourceScansEnabled',
'scansEnabled_checkHowGetIPs',
'scansEnabled_coreUnknown',
'scansEnabled_fileContents',
'scansEnabled_fileContentsGSB',
'scansEnabled_checkReadableConfig',
'scansEnabled_suspectedFiles',
'scansEnabled_suspiciousOptions',
'scansEnabled_diskSpace',
'scansEnabled_wafStatus',
'scansEnabled_wpscan_fullPathDisclosure',
'scansEnabled_wpscan_directoryListingEnabled',
'scansEnabled_scanImages',
'scansEnabled_highSense',
'scansEnabled_oldVersions',
'scansEnabled_suspiciousAdminUsers',
case self::OPTIONS_TYPE_TWO_FACTOR:
'loginSec_requireAdminTwoFactor',
'loginSec_enableSeparateTwoFactor',
case self::OPTIONS_TYPE_LIVE_TRAFFIC:
'liveTraf_ignorePublishers',
'liveTraf_displayExpandedRecords',
'displayTopLevelLiveTraffic',
case self::OPTIONS_TYPE_DIAGNOSTICS:
case self::OPTIONS_TYPE_ALL:
'alertOn_lostPasswdForm',
'alertOn_firstAdminLoginOnly',
'alertOn_firstNonAdminLoginOnly',
'alertOn_wordfenceDeactivated',
'liveActivityPauseEnabled',
'notification_updatesNeeded',
'notification_securityAlerts',
'notification_promotions',
'notification_blogHighlights',
'notification_productUpdates',
'notification_scanStatus',
'other_bypassLitespeedNoabort',
'disableCodeExecutionUploads',
'email_summary_dashboard_widget_enabled',
'email_summary_interval',
'email_summary_excluded_directories',
'howGetIPs_trusted_proxies',
'howGetIPs_trusted_proxy_preset',
'loginSec_strongPasswds_enabled',
'loginSec_breachPasswds_enabled',
'loginSec_lockInvalidUsers',
'loginSec_maskLoginErrors',
'loginSec_blockAdminReg',
'loginSec_disableAuthorScan',
'loginSec_disableOEmbedAuthor',
'other_pwStrengthOnUpdate',
'ajaxWatcherDisabled_front',
'ajaxWatcherDisabled_admin',
'loginSec_userBlacklist',
'loginSec_countFailMins',
'loginSec_strongPasswds',
'loginSec_breachPasswds',
'loginSec_maxForgotPasswd',
'maxGlobalRequests_action',
'maxRequestsCrawlers_action',
'maxRequestsHumans_action',
'dismissAutoPrependNotice',
'displayTopLevelBlocking',
'lowResourceScansEnabled',
'scansEnabled_checkHowGetIPs',
'scansEnabled_coreUnknown',
'scansEnabled_fileContents',
'scansEnabled_fileContentsGSB',
'scansEnabled_checkReadableConfig',
'scansEnabled_suspectedFiles',
'scansEnabled_suspiciousOptions',
'scansEnabled_diskSpace',
'scansEnabled_wafStatus',
'scansEnabled_wpscan_fullPathDisclosure',
'scansEnabled_wpscan_directoryListingEnabled',
'scansEnabled_scanImages',
'scansEnabled_highSense',
'scansEnabled_oldVersions',
'scansEnabled_suspiciousAdminUsers',
'loginSec_requireAdminTwoFactor',
'loginSec_enableSeparateTwoFactor',
'liveTraf_ignorePublishers',
'liveTraf_displayExpandedRecords',
'displayTopLevelLiveTraffic',
'advancedCommentScanning',
foreach ($options as $key) {
if (isset(self::$defaultConfig['checkboxes'][$key])) {
$changes[$key] = self::$defaultConfig['checkboxes'][$key]['value'];
else if (isset(self::$defaultConfig['otherParams'][$key])) {
$changes[$key] = self::$defaultConfig['otherParams'][$key]['value'];
else if (isset(self::$defaultConfig['defaultsOnly'][$key])) {
$changes[$key] = self::$defaultConfig['defaultsOnly'][$key]['value'];
class wfConfigException extends Exception {}