[wp-trac] Re: [WordPress Trac] #6072: Write Post: Permalink should not be "undefined" if I click Edit, clear the field, and then click Save

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 5 08:00:14 GMT 2008


#6072: Write Post: Permalink should not be "undefined" if I click Edit, clear the
field, and then  click Save
-----------------------+----------------------------------------------------
 Reporter:  lloydbudd  |        Owner:  nbachiyski
     Type:  defect     |       Status:  reopened  
 Priority:  normal     |    Milestone:  2.5       
Component:  General    |      Version:  2.5       
 Severity:  normal     |   Resolution:            
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Comment (by nbachiyski):

 The main problem was that autosave didn't pass the title, so that the
 correct slug can be computed. Moreover, I had some stupid holes in the
 logic.

 Tested in the following conditions:
  * New post -> Automatic autosave -- uses the title at the moment of
 autosave
  * Draft -> Edit slug
  * Draft -> Edit slug and then save -- there was a problem in that case
 (used empty slug), which I found and fixed
  * Published post -> Set a new slug
  * Any post -> Set empty slug -- fallbacks to current title as Lloyd
 suggested

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6072#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list