[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
Thu Jun 2 12:35:42 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 dev-feedback commit         |
-------------------------------------------------+-------------------------

Comment (by Toro_Unit):

 @costdev Thank you update patch !!!

 I  can't recall why $prepared_post->post_type = $this->post_type; was
 removed.

 I think it is a mistake. ( Or it could have been removed because it would
 not affect anything. )

 I rolledback tha line and tested it and confirmed that the problem is
 fixed for both page and custom post type.

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


More information about the wp-trac mailing list