[wp-trac] [WordPress Trac] #52422: Create a draft with the same slug as an existing post, the existing post will be 404.

WordPress Trac noreply at wordpress.org
Sun Jul 17 22:59:08 UTC 2022


#52422: Create a draft with the same slug as an existing post, the existing post
will be 404.
-------------------------------------------------+-------------------------
 Reporter:  Toro_Unit                            |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.1
Component:  Posts, Post Types                    |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info early dev-feedback                |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * keywords:  has-patch has-unit-tests has-testing-info early dev-feedback
     commit => has-patch has-unit-tests has-testing-info early dev-feedback


Comment:

 I added a note to the PR but it didn't come through here.

 I think the PR should focus on the logic around when the REST API uses
 `get_sample_permalink()` rather than change the logic using
 `wp_unique_post_slug()`.

 This will ensure all the appropriate filters fire too.

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


More information about the wp-trac mailing list