[wp-trac] [WordPress Trac] #29847: get_default_post_to_edit() stomps on assigned post_name

WordPress Trac noreply at wordpress.org
Mon Dec 15 09:54:10 UTC 2014


#29847: get_default_post_to_edit() stomps on assigned post_name
-------------------------------+---------------------------
 Reporter:  danielbachhuber    |       Owner:  boonebgorges
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.1
Component:  Posts, Post Types  |     Version:  3.0
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+---------------------------

Comment (by nacin):

 I remember digging through this when this ticket first came up (or maybe
 on Twitter, in IRC, etc.), and came to the same conclusion, that this was
 fine to change.

 What I suspect happened is post_name was set to `''` during the
 development of [12987], because before the changes to wp-includes/post.php
 in [12987], it was necessary to avoid an empty slug for a title of "Auto
 Draft". By the time it was committed, though, it no longer needed to be
 overridden.

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


More information about the wp-trac mailing list