[wp-trac] [WordPress Trac] #39942: Restored Post may steal slug to published Post

WordPress Trac noreply at wordpress.org
Sun Jan 25 13:44:24 UTC 2026


#39942: Restored Post may steal slug to published Post
-------------------------------+-----------------------------
 Reporter:  ziodave            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Future Release
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  worksforme
 Keywords:                     |     Focuses:
-------------------------------+-----------------------------
Changes (by r1k0):

 * keywords:  needs-testing =>
 * status:  new => closed
 * resolution:   => worksforme


Comment:

 == Reproduction Report

 === Environment
 - WordPress: 6.9
 - PHP: 8.4.17
 - Server: PHP.wasm
 - Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
 - Browser: Chrome 144.0.0.0
 - OS: Linux
 - Theme: Twenty Twenty-Five 1.4
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Steps taken
 1. Create a post and name it "Post", and publish it.
 2. On the post edit page, change the post status from published to draft,
 and click update.
 3. Trash this post.
 4. Repeat steps 1 - 3.
 5. Create a third post and publish it.
 6. Restore the second post you created, change its status from draft to
 published, and update changes.
 7. Click the quick edit button on the post just restored, observe the slug
 input field.
 8. Click the quick edit button on the third post you created, observe the
 slug input field.
 9. ❌ Bug is not occurring

 === Expected behavior
 - The third post still retains its slug, and the restored post gets
 another slug i.e., "post-2".

 === Additional Notes
 - This issue seems to have been solved.

 === Screenshots/Screencast with results
 - https://files.catbox.moe/of2nfe.webm

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


More information about the wp-trac mailing list