WordPress tool bug fix ensures plugin update badges persist after failed maintenance runs
A bug was discovered in a WordPress maintenance tool where plugin update badges incorrectly disappeared from site cards even when updates failed to complete due to SSH errors, rollbacks, or backup failures. The root cause was frontend logic that assumed any maintenance-complete event meant all plugins were successfully updated, automatically clearing the badge cache regardless of actual outcome. The fix introduces a backend marker line emitted into the streaming log after a post-update residual check, reporting the exact count and names of plugins still pending. The frontend now reads this marker to decide whether to hide the badge, update it with real plugin names, or leave it unchanged if no marker was emitted. This conservative approach ensures that when outcome data is unavailable, the existing badge state is preserved rather than incorrectly reset.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in