[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 May 3 21:15:58 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 commit early                      |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:14 costdev]:

 > To clarify:
 [https://core.trac.wordpress.org/attachment/ticket/52422/52422.refresh-of-
 PR-1333.diff 52422.refresh-of-PR-1333.diff] is the commit candidate.

 Probably missing something but why the `$prepared_post->post_type =
 $this->post_type;` is removed in the patches?

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


More information about the wp-trac mailing list