Skip to content

Commit 2582d9b

Browse files
authored
release: small fixes
- Fixed an issue where offload logs failed to load in some cases. - Adjusted the conditions for displaying early upgrade notices to prevent premature notifications.
2 parents 79ffc43 + 2459733 commit 2582d9b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

inc/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ public function should_show_upgrade() {
675675
if ( $visitors_limit === 0 ) {
676676
return false;
677677
}
678-
if ( $visitors_left > 2000 ) {
678+
if ( $visitors_left > 300 ) {
679679
return false;
680680
}
681681

inc/logger.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ private function tailCustom( $filepath, $lines = 1, $adaptive = true, $separator
189189
$pos = strrpos( $output, $separator );
190190
if ( $pos !== false ) {
191191
$output = substr( $output, $pos + strlen( $separator ) );
192+
$pos = -1; // we reset the position to start from the beginning of the chunk when slicing.
192193
}
193194
}
194195

0 commit comments

Comments
 (0)