Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordfenc.../lib
File: WFLSPHP52Compatability.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class WFLSPHP52Compatability
[3] Fix | Delete
*
[4] Fix | Delete
* This class exists solely to contain syntax incompatible with PHP 5.2 into a single file.
[5] Fix | Delete
*/
[6] Fix | Delete
class WFLSPHP52Compatability {
[7] Fix | Delete
public static function install_plugin() {
[8] Fix | Delete
\WordfenceLS\Controller_WordfenceLS::shared()->_install_plugin();
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
public static function uninstall_plugin() {
[12] Fix | Delete
\WordfenceLS\Controller_WordfenceLS::shared()->_uninstall_plugin();
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
public static function import_2fa($import) {
[16] Fix | Delete
$imported = \WordfenceLS\Controller_Users::shared()->import_2fa($import);
[17] Fix | Delete
if ($imported && wfConfig::get('loginSec_requireAdminTwoFactor')) {
[18] Fix | Delete
\WordfenceLS\Controller_Settings::shared()->set(\WordfenceLS\Controller_Settings::OPTION_REQUIRE_2FA_ADMIN, true);
[19] Fix | Delete
}
[20] Fix | Delete
return $imported;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
public static function secrets_table() {
[24] Fix | Delete
return \WordfenceLS\Controller_DB::shared()->secrets;
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
public static function ntp_time() {
[28] Fix | Delete
return \WordfenceLS\Controller_Time::ntp_time();
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
public static function using_ntp_time() {
[32] Fix | Delete
return \WordfenceLS\Controller_Settings::shared()->get_bool(\WordfenceLS\Controller_Settings::OPTION_USE_NTP);
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
public static function using_wf_time() {
[36] Fix | Delete
return !self::using_ntp_time() && defined('WORDFENCE_LS_FROM_CORE') && WORDFENCE_LS_FROM_CORE && ((int) wfConfig::get('timeoffset_wf', false)) != 0;
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function