: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
public function bruteForceStatus() {
$networkBruteForceEnabled = !!wfConfig::get('other_WFNet');
$localBruteForceEnabled = !!wfConfig::get('loginSecurityEnabled');
if ($localBruteForceEnabled) {
if ($networkBruteForceEnabled) {
if (wfConfig::get('loginSec_strongPasswds_enabled') && (wfConfig::get('loginSec_strongPasswds') == 'pubs' || wfConfig::get('loginSec_strongPasswds') == 'all')) {
if (wfConfig::get('loginSec_maskLoginErrors')) {
if (wfConfig::get('loginSec_blockAdminReg')) {
if (wfConfig::get('loginSec_disableAuthorScan')) {
return round($percentage, 2);
* Returns the status of the WAF's learning mode.
* @return bool|int Returns true if enabled without an automatic switchover, a timestamp if enabled with one, and false if not in learning mode.
public function learningModeStatus() {
if ($this->firewallMode() != self::FIREWALL_MODE_LEARNING) {
$config = wfWAF::getInstance()->getStorageEngine();
if ($config->getConfig('learningModeGracePeriodEnabled')) {
return (int) $config->getConfig('learningModeGracePeriod');
public function bruteForceStatusList() {
$networkBruteForceEnabled = !!wfConfig::get('other_WFNet');
$localBruteForceEnabled = !!wfConfig::get('loginSecurityEnabled');
if ($localBruteForceEnabled) {
if (!$networkBruteForceEnabled) {
'title' => __('Enable Real-Time Wordfence Security Network.', 'wordfence'),
if (!wfConfig::get('loginSec_strongPasswds_enabled')) {
'title' => __('Enforce Strong Passwords.', 'wordfence'),
if (!wfConfig::get('loginSec_maskLoginErrors')) {
'title' => __('Enable Mask Login Errors.', 'wordfence'),
if (!wfConfig::get('loginSec_blockAdminReg')) {
'title' => __('Enable Block Admin Registration.', 'wordfence'),
if (!wfConfig::get('loginSec_disableAuthorScan')) {
'title' => __('Disable Author Scanning.', 'wordfence'),
'title' => __('Enable Brute Force Protection.', 'wordfence'),
return array_filter($status);