[wp-trac] [WordPress Trac] #44805: Resurrecting post from trash reverts its slug

WordPress Trac noreply at wordpress.org
Thu Oct 9 12:53:09 UTC 2025


#44805: Resurrecting post from trash reverts its slug
-------------------------------------------------+-------------------------
 Reporter:  ajmccluskey                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:  4.5
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch good-first-bug has-      |     Focuses:
  test-info                                      |
-------------------------------------------------+-------------------------
Changes (by schimmilol):

 * Attachment "post.php.diff" added.

 Add a case for trashed posts in the 'wp_insert_post' function and modify
 the 'wp_add_trashed_suffix_to_post_name_for_post' function with optional
 $post_name parameter

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44805>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list