[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 Jul 20 02:50:54 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                |
-------------------------------------------------+-------------------------

Comment (by Toro_Unit):

 @peterwilsoncc

 https://github.com/WordPress/wordpress-develop/blob/6.0/src/wp-
 admin/includes/ajax-actions.php#L2082-L2086

 This hack is also used for quick editing.

 I think the best way to do this is to modify wp_insert_post and remove
 this hack.

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


More information about the wp-trac mailing list