Make WordPress Core

Opened 9 months ago

Last modified 3 months ago

#61511 new enhancement

Use empty_trash_days to show how many days deleted posts will be kept for in the trash

Reported by: mrfoxtalbot's profile mrfoxtalbot Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.5.5
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

By default, posts will be kept in the trash [for 30 days](https://codex.wordpress.org/Trash_status#:~:text=pull%2Ddown%20menu.-,Default%20Days%20before%20Permanently%20Deleted,are%20deleted%20and%20some%20remain) before they are discarded for good.

I have encountered many users who lost content because they did not know about this 30 day limit.

I propose we use the value set in [empty_trash_days](https://codex.wordpress.org/Trash_status) and display it alongside the "1 post moved to the Trash" message and/or on the trash section itself.

Attachments (2)

Screenshot 2024-06-26 at 15.38.31.png (52.2 KB) - added by mrfoxtalbot 9 months ago.
"1 post moved to the Trash
Screenshot 2024-06-26 at 15.40.25.png (134.2 KB) - added by mrfoxtalbot 9 months ago.
Trash with the new proposed message

Download all attachments as: .zip

Change History (8)

@mrfoxtalbot
9 months ago

"1 post moved to the Trash

@mrfoxtalbot
9 months ago

Trash with the new proposed message

This ticket was mentioned in PR #6932 on WordPress/wordpress-develop by @aslamdoctor.


9 months ago
#1

  • Keywords has-patch added

@aslamdoctor commented on PR #6932:


3 months ago
#2

Thanks @Debarghya-Banerjee , the suggested changes has been committed.

@aslamdoctor commented on PR #6932:


3 months ago
#3

Closing this PR as lot of files were outdated on my branch, so I merged trunk with it to update them and it messed up the PR with lot of commits 🤦‍♂️

@aslamdoctor commented on PR #8054:


3 months ago
#5

@Debarghya-Banerjee I created this as a fresh PR as I did some mistakes in previous one by including huge set of commits and had to close it.

@aslamdoctor commented on PR #6932:


3 months ago
#6

@Debarghya-Banerjee please follow this fresh PR
https://github.com/WordPress/wordpress-develop/pull/8054

Note: See TracTickets for help on using tickets.