From 52b4ab1eef71432a2f2e7b834966e055b756d046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Viemer=C3=B6?= Date: Sun, 26 Oct 2025 11:39:27 +0200 Subject: [PATCH] Fix wrong default param in file_get_contents() --- admin/class-purger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/class-purger.php b/admin/class-purger.php index 42f1b27..7588edd 100644 --- a/admin/class-purger.php +++ b/admin/class-purger.php @@ -585,7 +585,7 @@ public function check_and_truncate_log_file() { if ( $file_size > $max_size_allowed ) { $offset = $file_size - $max_size_allowed; - $file_content = file_get_contents( $nginx_asset_path, null, null, $offset ); + $file_content = file_get_contents( $nginx_asset_path, false, null, $offset ); $file_content = empty( $file_content ) ? '' : strstr( $file_content, "\n" ); $fp = fopen( $nginx_asset_path, 'w+' );