Skip to content

Fixed customized message for draft notice#77131

Closed
sabbir1991 wants to merge 1 commit intoWordPress:trunkfrom
sabbir1991:fix/draft-message-on-post-editor
Closed

Fixed customized message for draft notice#77131
sabbir1991 wants to merge 1 commit intoWordPress:trunkfrom
sabbir1991:fix/draft-message-on-post-editor

Conversation

@sabbir1991
Copy link
Copy Markdown
Contributor

What?

Issue #77014

Updates the Draft saved notice so it can use a post type label, similar to the existing trash notice behavior.

Why?

The Draft saved message was hardcoded, which made it unavailable to post types that need a custom save notice.

How?

Adds a new post type label for draft saves and updates the editor success notice logic to use that label instead of the hardcoded string.

Testing Instructions

  1. Register a custom post type with a custom draft-save label.
  2. Open a new draft for that post type in the editor.
  3. Save the draft.
  4. Confirm the snackbar shows the custom draft-save message.
  5. Save a regular post draft and confirm the default Draft saved message still appears.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: sabbir1991 <sabbir1991@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@Mamaduka
Copy link
Copy Markdown
Member

Mamaduka commented Apr 8, 2026

Closing as this doesn't fix the issue. We can continue the discussion in the ticket.

@Mamaduka Mamaduka closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Editor /packages/editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants