Is your enhancement related to a problem? Please describe.
Feature Description:
Currently, when a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber initiates the process of scrubbing all comments without informing the user about the irreversible nature of this action. This can lead to accidental deletion of all comments without any warning.
Proposed Enhancement:
To enhance user experience and prevent accidental data loss, I propose adding a confirmation prompt before executing the 'wp scrub all' or 'wp scrub comments' command. This prompt should inform the user about the irreversible nature of the action and require explicit confirmation from the user before proceeding with the deletion process.
Details:
When a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber should display a message informing the user about the action's irreversible nature.
The message should clearly state that executing the command will delete all comments from the site and that this action cannot be undone.
The message should prompt the user to confirm their intention to proceed by typing 'yes'.
If the user types 'yes', WP Scrubber should proceed with deleting the comments as requested.
If the user does not type 'yes' or enters any other input, WP Scrubber should cancel the action and display a message indicating that no changes were made.
Warning: Running this command will delete all comments from the site, and this action cannot be undone.
To proceed, type 'yes'
Is your enhancement related to a problem? Please describe.
Feature Description:
Currently, when a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber initiates the process of scrubbing all comments without informing the user about the irreversible nature of this action. This can lead to accidental deletion of all comments without any warning.
Proposed Enhancement:
To enhance user experience and prevent accidental data loss, I propose adding a confirmation prompt before executing the 'wp scrub all' or 'wp scrub comments' command. This prompt should inform the user about the irreversible nature of the action and require explicit confirmation from the user before proceeding with the deletion process.
Details:
When a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber should display a message informing the user about the action's irreversible nature. The message should clearly state that executing the command will delete all comments from the site and that this action cannot be undone.
The message should prompt the user to confirm their intention to proceed by typing 'yes'.
If the user types 'yes', WP Scrubber should proceed with deleting the comments as requested.
If the user does not type 'yes' or enters any other input, WP Scrubber should cancel the action and display a message indicating that no changes were made.
https://github.com/10up/wp-scrubber/assets/6384299/ade2d2af-0751-43b0-869b-69a738023ff1
Designs
No response
Describe alternatives you've considered
No response
Code of Conduct