[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
Wed May 4 14:12:48 UTC 2022


#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:  6.1
Component:  Posts, Post Types                    |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info early                             |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

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


Comment:

 As there is a valid question about why `$prepared_post->post_type =
 $this->post_type;` is removed in the patch, I'm removing the `commit`
 keyword until code review is finished. once finished, then `commit` can be
 applied to alert it's ready to be committed.

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


More information about the wp-trac mailing list