Usability Improvements & Backup Comment Support for WP-DBManager #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Lester,
This PR introduces several small but meaningful enhancements to WP-DBManager with a focus on improving usability, readability, and traceability without changing core functionality or breaking existing behavior.
All patches are self-contained, minimally invasive, and follow the plugin’s coding patterns.
1. Optional Backup Comments (Manual + Cron)
Feature Addition
.txtfile alongside the backupBenefit: Makes it far easier to identify the purpose of a backup (e.g., before updates, migrations, testing), improving traceability without affecting existing backups.
2. Collapsible “Backup Environment Checks” Panel
The long diagnostic section on the Backup Database page is now wrapped in a WordPress-style collapsible box:
No diagnostic content was changed — only how it is presented.
3. Clearer Submenu: Add Explicit “Database Info” Entry
Adds a first submenu item labeled “Database Info”, matching other submenu naming and replacing the automatically generated generic “Database” label.
This makes navigation clearer without altering permissions or page structure.
4. Improved Backup Action Button Placement
The action buttons (Download / Restore / Delete / E-Mail / Cancel) on the Manage Backup DB page have been refactored into a reusable function and are now shown:
This improves usability when many backups exist and avoids unnecessary scrolling.
5. Support for Optional Custom Admin Stylesheet
If
database-admin-css.cssis present in the plugin directory, the plugin automatically loads it for admin pages.This makes UI customization possible without modifying core plugin files.
6. Additional Small UI Enhancements
Overall Goals
All new features degrade gracefully and do not affect existing installations.
If you have any questions or prefer some changes to be separated further, I’m happy to adjust the PR.