[wp-trac] [WordPress Trac] #12778: Cannot publish a post after clicking preview on Chrome/Safari

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 5 20:27:27 UTC 2010


#12778: Cannot publish a post after clicking preview on Chrome/Safari
--------------------------+-------------------------------------------------
 Reporter:  grooveshark   |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.9.3
Component:  Editor        |     Version:  2.9.2
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by duck_):

 I can reproduce with Chrome on Win7 using trunk, 2.9.2 and 2.7 (just for
 luck).

 Seems that it might be a bug in WebKit (therefore by extension Chrome and
 Safari) and not an issue with WordPress. You cannot submit a form with the
 same action twice (see links).

 A workaround (and to show that this is probably the issue) is to update
 the form's action field when previewing. Update wp-includes/js/autosave.js
 (line 53 in dev version):

 {{{
 $('form#post').attr('target', 'wp-preview').submit().attr('target',
 '').attr('action', 'post.php?'+Math.random());
 }}}

 NB: the issue was resolved for me when using Chrome 5.0.356.2 (from dev
 channel) on WordPress 2.9.2.

 Further info:
 http://www.google.com/support/forum/p/Chrome/thread?tid=4bb901d8189139df&hl=en
 http://code.google.com/p/chromium/issues/detail?id=16528
 https://bugs.webkit.org/show_bug.cgi?id=28633

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12778#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list