[wp-trac] [WordPress Trac] #11863: Trashed items interfere with page/post slug generation

WordPress Trac noreply at wordpress.org
Mon Feb 8 15:02:34 UTC 2016


#11863: Trashed items interfere with page/post slug generation
-------------------------------------------------+-------------------------
 Reporter:  Denis-de-Bernardy                    |       Owner:  ericlewis
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.5
Component:  Posts, Post Types                    |     Version:  2.9
 Severity:  normal                               |  Resolution:
 Keywords:  make-flow has-patch has-unit-tests   |     Focuses:
  needs-testing                                  |
-------------------------------------------------+-------------------------

Comment (by ryan):

 I lightly tested 11863.4.diff. Looking good.

 * Create "test" draft with "test" slug
 * Save draft
 * Start another test draft
 * Verify new draft shows "test" as its slug rather than test-2
 * Publish the second draft
 * Verify that the published post has "test" slug
 * Edit first draft
 * Verify slug is test-2
 * Trash published "test" post
 * Edit draft post
 * Slug is now "test" instead of "test-2"
 * Publish draft
 * Slug remains "test"
 * Restore trashed post
 * The post restores directly back to published (because #15930)
 * Verify the restored post is "test-2", not "test"

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


More information about the wp-trac mailing list