[wp-trac] [WordPress Trac] #11207: WordPress may display incorrect message when post is saved/published/etc

WordPress Trac noreply at wordpress.org
Thu Jun 13 14:45:01 UTC 2024


#11207: WordPress may display incorrect message when post is saved/published/etc
-------------------------------------------------+-------------------------
 Reporter:  sirzooro                             |       Owner:  desrosj
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:  2.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch good-first-bug needs-      |     Focuses:
  testing                                        |  administration
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58406" 58406]:
 {{{
 #!CommitTicketReference repository="" revision="58406"
 Posts/Post Types: Display the correct message when post status is filtered
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/11207#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list