| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit; |
| 3 | 3 | |
| 4 | -if (!class_exists('WPRProtectLoggerFS_V556')) : | |
| 5 | -class WPRProtectLoggerFS_V556 { | |
| 4 | +if (!class_exists('WPRProtectLoggerFS_V676')) : | |
| 5 | +class WPRProtectLoggerFS_V676 { | |
| 6 | 6 | public $logFile; |
| 7 | 7 | |
| 8 | 8 | function __construct($filename) { |
| 9 | 9 | $this->logFile = $filename; |
| @@ -12,8 +12,9 @@ | ||
| 12 | 12 | public function log($data) { |
| 13 | 13 | $_data = serialize($data); |
| 14 | 14 | $str = "bvlogbvlogbvlog" . ":"; |
| 15 | 15 | $str .= strlen($_data) . ":" . $_data; |
| 16 | + // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- logging required | |
| 16 | 17 | error_log($str, 3, $this->logFile); |
| 17 | 18 | } |
| 18 | 19 | } |
| 19 | 20 | endif; |