Skip to content

Label of button 'Move to trash' on Settings Panel in Block Editor not changed when constant EMPTY_TRASH_DAYS is defined as 0. #74230

@hbhalodia

Description

@hbhalodia

Description

  1. When adding the constant EMPTY_TRASH_DAYS, to 0, it should show permanent delete option in post editor, instead it shows Move to trash, but the action performed is permanent delete.
  2. Core ticket - https://core.trac.wordpress.org/ticket/64453

Step-by-step reproduction instructions

  1. Set EMPTY_TRASH_DAYS in wp-config.php to 0.
  2. Open post editor, you will see move to trash button, instead it should show Delete Permanently.
  3. When clicked Move to trash, it shows modal and says move to trash for confirmation, but when done, the post is deleted permanently instead of trash which is ideal behaviour, but labels are mismatched.

Screenshots, screen recording, code snippet

Screen.Recording.2025-12-26.at.1.39.57.PM.mov

Environment info

  • WordPress Trunk.
  • GB Trunk.

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

General InterfaceParts of the UI which don't fall neatly under other labels.[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions