Opened 5 months ago
Last modified 5 months ago
#61598 new enhancement
Add an interface option to let users set empty_trash_days
Reported by: | mrfoxtalbot | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | Cc: |
Description
Most users are unaware of the empty_trash_days settings or how to change it. This can sometimes make them lose their content if they trash their posts instead of setting them as drafts.
In #61511 I suggested we could display the value of empty_trash_days to minimize confusion but we could go further and introduce a setting to allow users to set this value via their dashboard.
Change History (3)
This ticket was mentioned in PR #6996 on WordPress/wordpress-develop by @debarghyabanerjee.
5 months ago
#1
- Keywords has-patch added
@khokansardar commented on PR #6996:
5 months ago
#2
@Debarghya-Banerjee left smaill suggestion. Overall LGTM.
@debarghyabanerjee commented on PR #6996:
5 months ago
#3
@Debarghya-Banerjee left small suggestion. Overall LGTM.
Hi @itzmekhokan, I have fixed the above requested changes, and have assigned you for re-review again. Thanks :-)
Trac Ticket - Core-61598
## Summary
Fixes an issue with the
EMPTY_TRASH_DAYS
value, right now user can't manually set theEMPTY_TRASH_DAYS
valuefrom the backend, so this PR addresses the issue and adds a settings field under
Writing
, which lets the user set theEMPTY_TRASH_DAYS
value.## Description
### Problem
Right now, the user can't manually set the
EMPTY_TRASH_DAYS
value from the backend, neither all of them are aware of the process on how to do it. They either need to hire adeveloper
to do the changes or need to manually change it.### Solution
To resolve this issue, I have made the following changes:
Writing
EMPTY_TRASH_DAYS
value would get updated as well.EMPTY_TRASH_DAYS
value from the backend.### Changes Made