[wp-trac] [WordPress Trac] #34865: Slug reset when updating post in edit.php without slug field

WordPress Trac noreply at wordpress.org
Sun Dec 6 16:46:18 UTC 2015


#34865: Slug reset when updating post in edit.php without slug field
-------------------------------+-----------------------------
 Reporter:  jason_the_adams    |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  trunk
 Severity:  normal             |   Keywords:
  Focuses:  administration     |
-------------------------------+-----------------------------
 Currently, when a post is being updated, it's assumed that the existing
 post slug will be supplied with the post being updated, rather than
 retrieving the post and using the existing slug. Other values of the post
 aren't imposed, so it's fair to omit them in the update data. It seems
 like it would be consistent to retrieve the existing slug in
 wp_insert_post when updating.

 If this makes sense, I'm happy to put together a test for proof-of-issue
 and subsequent fix.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34865>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list