Opened 8 months ago
Closed 7 months ago
#64189 closed feature request (fixed)
Include value of EMPTY_TRASH_DAYS constant
| Reported by: | desrosj | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.0 |
| Component: | Site Health | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
Description
The EMPTY_TRASH_DAYS constant controls how long posts and comments remain in the trash before wp_scheduled_delete() deletes them permanently.
The default value is 30, but setting the constant to a falsey value will skip the trash entirely any time delete post/comment is clicked. This value could be useful for debugging certain behaviors in a WordPress site.
Change History (3)
This ticket was mentioned in PR #10475 on WordPress/wordpress-develop by @deepakprajapati.
8 months ago
#1
- Keywords has-patch added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This PR introduces visibility for the EMPTY_TRASH_DAYS constant in the Site Health “WordPress Constants” section.
It helps site administrators quickly identify how long trashed content is retained before permanent deletion — or whether the trash feature is disabled.
Trac ticket: https://core.trac.wordpress.org/ticket/64189
Screenshot
