Data views: Confirm step should be used for permanently destructive actions and not for Move to trash #62185
Labels
[Feature] DataViews
Work surrounding upgrading and evolving views in the site editor and beyond
[Type] Bug
An existing feature does not function as intended
Description
Traditionally, for some objects like posts, pages, (optionally) media, etc. WordPress has always used a two-step deletion flow where:
Tgis two-step flow is now in use also in the Data VIews but I'm not sure the confirmation steps are ideal.
To me, any action that does not permanently delete something doesn't need a confirmation dialog. In fact, in this scenario the trashed objects can always be restored from the trash.
Instead, any action that does permanently delete something, does need a confirmation dialog.
In the Data Views, this appears to be implemented in the opposite way, which doesn't safeguards used from inadvertently delete something permanently.
RIght now:
I'd think it should be the opposite.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: