Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Posts/Post Types: Display the correct message when post status is fil…
…tered on save. This prevents the display of an inaccurate message when the `wp_insert_post_data` filter is used to change the status of a post while saving. This bug was only present when using the Classic Editor. The previous code incorrectly assumed that a filter would never change a post’s status to `draft`, resulting in a “Post published.” message instead of “Post draft updated.”. Props freibergergarcia, sirzooro, hakre, blepoxp, scribu, kawauso. Fixes #11207. git-svn-id: https://develop.svn.wordpress.org/trunk@58406 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information