[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
Tue Feb 2 11:27:05 UTC 2021


#52422: Create a draft with the same slug as an existing post, the existing post
will be 404.
--------------------------+------------------------------
 Reporter:  Toro_Unit     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by h2ham):

 It also happened in default posts.

 1. Set permalink to `%postname%`.
 2. Publish new post of default posts.
 3. Create draft post of the default post with same slug.
 4. Go to the published post. but show draft post. If logged out, 404.

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


More information about the wp-trac mailing list