<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre, #msg p { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[11790] trunk/wp-includes: Don'
 t do autosave while the TinyMCE spellchecker is active (
 it strips all the markup), fixes #10515</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/11790">11790</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2009-08-08 09:03:56 +0000 (Sat, 08 Aug 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Don't do autosave while the TinyMCE spellchecker is active (it strips all the markup), fixes <a href="http://trac.wordpress.org/ticket/10515">#10515</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsautosavedevjs">trunk/wp-includes/js/autosave.dev.js</a></li>
<li><a href="#trunkwpincludesjsautosavejs">trunk/wp-includes/js/autosave.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsautosavedevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.dev.js (11789 => 11790)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.dev.js        2009-08-08 08:38:20 UTC (rev 11789)
+++ trunk/wp-includes/js/autosave.dev.js        2009-08-08 09:03:56 UTC (rev 11790)
</span><span class="lines">@@ -196,11 +196,16 @@
</span><span class="cx">                 doAutoSave = false;
</span><span class="cx"> 
</span><span class="cx">         /* Gotta do this up here so we can check the length when tinyMCE is in use */
</span><del>-        if ( rich ) {
</del><ins>+        if ( rich &amp;&amp; doAutoSave ) {
</ins><span class="cx">                 ed = tinyMCE.activeEditor;
</span><del>-                if ( 'mce_fullscreen' == ed.id )
-                        tinyMCE.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
-                tinyMCE.get('content').save();
</del><ins>+                // Don't run while the TinyMCE spellcheck is on. It resets all found words.
+                if ( ed.plugins.spellchecker &amp;&amp; ed.plugins.spellchecker.active ) {
+                        doAutoSave = false;
+                } else {
+                        if ( 'mce_fullscreen' == ed.id )
+                                tinyMCE.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
+                        tinyMCE.get('content').save();
+                }
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         post_data[&quot;content&quot;] = jQuery(&quot;#content&quot;).val();
</span><span class="lines">@@ -208,7 +213,7 @@
</span><span class="cx">                 post_data[&quot;post_name&quot;] = jQuery('#post_name').val();
</span><span class="cx"> 
</span><span class="cx">         // Nothing to save or no change.
</span><del>-        if( ( post_data[&quot;post_title&quot;].length == 0 &amp;&amp; post_data[&quot;content&quot;].length == 0 ) || post_data[&quot;post_title&quot;] + post_data[&quot;content&quot;] == autosaveLast) {
</del><ins>+        if ( ( post_data[&quot;post_title&quot;].length == 0 &amp;&amp; post_data[&quot;content&quot;].length == 0 ) || post_data[&quot;post_title&quot;] + post_data[&quot;content&quot;] == autosaveLast ) {
</ins><span class="cx">                 doAutoSave = false;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -216,7 +221,6 @@
</span><span class="cx"> 
</span><span class="cx">         origStatus = jQuery('#original_post_status').val();
</span><span class="cx"> 
</span><del>-        autosaveLast = jQuery(&quot;#title&quot;).val()+jQuery(&quot;#content&quot;).val();
</del><span class="cx">         goodcats = ([]);
</span><span class="cx">         jQuery(&quot;[name='post_category[]']:checked&quot;).each( function(i) {
</span><span class="cx">                 goodcats.push(this.value);
</span><span class="lines">@@ -233,9 +237,10 @@
</span><span class="cx">                 post_data[&quot;post_author&quot;] = jQuery(&quot;#post_author&quot;).val();
</span><span class="cx">         post_data[&quot;user_ID&quot;] = jQuery(&quot;#user-id&quot;).val();
</span><span class="cx"> 
</span><del>-        // Don't run while the TinyMCE spellcheck is on. It resets all found words.
-        if ( rich &amp;&amp; tinyMCE.activeEditor.plugins.spellchecker &amp;&amp; tinyMCE.activeEditor.plugins.spellchecker.active ) {
-                doAutoSave = false;
</del><ins>+        if ( doAutoSave ) {
+                autosaveLast = jQuery(&quot;#title&quot;).val()+jQuery(&quot;#content&quot;).val();
+        } else {
+                post_data['autosave'] = 0;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if ( parseInt(post_data[&quot;post_ID&quot;], 10) &lt; 1 ) {
</span><span class="lines">@@ -245,10 +250,6 @@
</span><span class="cx">                 successCallback = autosave_saved; // pre-existing post
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( !doAutoSave ) {
-                post_data['autosave'] = 0;
-        }
-
</del><span class="cx">         autosaveOldMessage = jQuery('#autosave').html();
</span><span class="cx"> 
</span><span class="cx">         jQuery.ajax({
</span></span></pre></div>
<a id="trunkwpincludesjsautosavejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.js (11789 => 11790)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.js        2009-08-08 08:38:20 UTC (rev 11789)
+++ trunk/wp-includes/js/autosave.js        2009-08-08 09:03:56 UTC (rev 11790)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var autosave,autosaveLast=&quot;&quot;,autosavePeriodical,autosaveOldMessage=&quot;&quot;,autosaveDelayPreview=false,notSaved=true;jQuery(document).ready(function(b){var a=true;autosaveLast=b(&quot;#post #title&quot;).val()+b(&quot;#post #content&quot;).val();autosavePeriodical=b.schedule({time:autosaveL10n.autosaveInterval*1000,func:function(){autosave()},repeat:true,protect:true});b(&quot;#post&quot;).submit(function(){b.cancel(autosavePeriodical)});b('.submitbox input[type=&quot;submit&quot;], .submitbox a.submitdelete').click(function(){window.onbeforeunload=null});window.onbeforeunload=function(){var c=typeof(tinyMCE)!=&quot;undefined&quot;?tinyMCE.activeEditor:false,e,d;if(c&amp;&amp;!c.isHidden()){if(c.isDirty()){return autosaveL10n.saveAlert}}else{e=b(&quot;#post #title&quot;).val(),d=b(&quot;#post #content&quot;).val();if((e||d)&amp;&amp;e+d!=autosaveLast){return autosaveL10n.saveAlert}}};b(&quot;#post-preview&quot;).click(function(){if(1&gt;b(&quot;#post_ID&quot;).val()&amp;&amp;notSaved){autosaveDelayPreview=true;autosave();return false}doPreview();return false});doPreview=function(){b(&quot;input#wp-preview&quot;).val(&quot;dopreview&quot;);b(&quot;form#post&quot;).attr(&quot;target&quot;,&quot;wp-preview&quot;).submit().attr(&quot;target&quot;,&quot;&quot;);b(&quot;input#wp-preview&quot;).val(&quot;&quot;)};if(typeof tinyMCE!=&quot;undefined&quot;){b(&quot;#title&quot;)[b.browser.opera?&quot;keypress&quot;:&quot;keydown&quot;](function(c){if(c.which==9&amp;&amp;!c.shiftKey&amp;&amp;!c.controlKey&amp;&amp;!c.altKey){if((b(&quot;#post_ID&quot;).val()&lt;1)&amp;&amp;(b(&quot;#title&quot;).val().length&gt;0)){autosave()}if(tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden()&amp;&amp;a){c.preventDefault();a=false;tinyMCE.activeEditor.focus();return false}}})}});function autosave_parse_response(b){var c=wpAjax.parseAjaxResponse(b,&quot;autosave&quot;),d=&quot;&quot;,a;if(c&amp;&amp;c.responses&amp;&amp;c.responses.length){d=c.responses[0].data;if(c.responses[0].supplemental){if(&quot;disable&quot;==c.responses[0].supplemental.disable_autosave){autosave=function(){};c={errors:true}}jQuery.each(c.responses[0].supplemental,function(e,f){if(e.match(/^replace-/)){jQuery(&quot;#&quot;+e.replace(&quot;replace-&quot;,&quot;&quot;)).val(f)}})}if(!c.errors){a=parseInt(c.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){autosave_update_slug(a)}}}if(d){jQuery(&quot;#autosave&quot;).html(d)}else{if(autosaveOldMessage&amp;&amp;c){jQuery(&quot;#autosave&quot;).html(autosaveOldMessage)}}return c}function autosave_saved(a){autosave_parse_response(a);autosave_enable_buttons()}function autosave_saved_new(b){var d=autosave_parse_response(b),c,a;if(d&amp;&amp;d.responses.length&amp;&amp;!d.errors){c=jQuery(&quot;#post_ID&quot;).val();a=parseInt(d.responses[0].id,10);autosave_update_post_ID(a);if(c&lt;0&amp;&amp;a&gt;0){notSaved=false;jQuery(&quot;#media-buttons a&quot;).each(function(){this.href=this.href.replace(c,a)})}if(autosaveDelayPreview){autosaveDelayPreview=false;doPreview()}}else{autosave_enable_buttons()}}function autosave_update_post_ID(a){if(!isNaN(a)&amp;&amp;a&gt;0){if(a==parseInt(jQuery(&quot;#post_ID&quot;).val(),10)){return}jQuery(&quot;#post_ID&quot;).attr({name:&quot;post_ID&quot;});jQuery(&quot;#post_ID&quot;).val(a);jQuery.post(autosaveL10n.requestFile,{action:&quot;autosave-generate-nonces&quot;,post_ID:a,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()},function(b){jQuery(&quot;#_wpnonce&quot;).val(b);autosave_enable_buttons()});jQuery(&quot;#hiddenaction&quot;).val(&quot;editpost&quot;)}}function autosave_update_slug(a){if(jQuery.isFunction(make_slugedit_clickable)&amp;&amp;!jQuery(&quot;#edit-slug-box &gt; *&quot;).size()){jQuery.post(slugL10n.requestFile,{action:&quot;sample-permalink&quot;,post_id:a,new_title:jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(b){jQuery(&quot;#edit-slug-box&quot;).html(b);make_slugedit_clickable()})}}function autosave_loading(){jQuery(&quot;#autosave&quot;).html(autosaveL10n.savingText)}function autosave_enable_buttons(){jQuery(&quot;.submitbox :button:disabled, .submitbox :submit:disabled&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}function autosave_disable_buttons(){jQuery(&quot;.submitbox :button:enabled, .submitbox :submit:enabled&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);setTimeout(autosave_enable_buttons,5000)}autosave=function(){var c=(typeof tinyMCE!=&quot;undefined&quot;)&amp;&amp;tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden(),d,f,b,e,a;d={action:&quot;autosave&quot;,post_ID:jQuery(&quot;#post_ID&quot;).val()||0,post_title:jQuery(&quot;#title&quot;).val()||&quot;&quot;,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()||&quot;&quot;,autosave:1};jQuery(&quot;.tags-input&quot;).each(function(){d[this.name]=this.value});f=true;if(jQuery(&quot;#TB_window&quot;).css(&quot;display&quot;)==&quot;block&quot;){f=false}if(c){b=tinyMCE.activeEditor;if(&quot;mce_fullscreen&quot;==b.id){tinyMCE.get(&quot;content&quot;).setContent(b.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.get(&quot;content&quot;).save()}d.content=jQuery(&quot;#content&quot;).val();if(jQuery(&quot;#post_name&quot;).val()){d.post_name=jQuery(&quot;#post_name&quot;).val()}if((d.post_title.length==0&amp;&amp;d.content.length==0)||d.post_title+d.content==autosaveLast){f=false}autosave_disable_buttons();e=jQuery(&quot;#original_post_status&quot;).val();autosaveLast=jQuery(&quot;#title&quot;).val()+jQuery(&quot;#content&quot;).val();goodcats=([]);jQuery(&quot;[name='post_category[]']:checked&quot;).each(function(g){goodcats.push(this.value)});d.catslist=goodcats.join(&quot;,&quot;);if(jQuery(&quot;#comment_status&quot;).attr(&quot;checked&quot;)){d.comment_status=&quot;open&quot;}if(jQuery(&quot;#ping_status&quot;).attr(&quot;checked&quot;)){d.ping_status=&quot;open&quot;}if(jQuery(&quot;#excerpt&quot;).size()){d.excerpt=jQuery(&quot;#excerpt&quot;).val()}if(jQuery(&quot;#post_author&quot;).size()){d.post_author=jQuery(&quot;#post_author&quot;).val()}d.user_ID=jQuery(&quot;#user-id&quot;).val();if(c&amp;&amp;tinyMCE.activeEditor.plugins.spellchecker&amp;&amp;tinyMCE.activeEditor.plugins.spellchecker.active){f=false}if(parseInt(d.post_ID,10)&lt;1){d.temp_ID=d.post_ID;a=autosave_saved_new}else{a=autosave_saved}if(!f){d.autosave=0}autosaveOldMessage=jQuery(&quot;#autosave&quot;).html();jQuery.ajax({data:d,beforeSend:f?autosave_loading:null,type:&quot;POST&quot;,url:autosaveL10n.requestFile,success:a})};
</del><span class="cx">\ No newline at end of file
</span><ins>+var autosave,autosaveLast=&quot;&quot;,autosavePeriodical,autosaveOldMessage=&quot;&quot;,autosaveDelayPreview=false,notSaved=true;jQuery(document).ready(function(b){var a=true;autosaveLast=b(&quot;#post #title&quot;).val()+b(&quot;#post #content&quot;).val();autosavePeriodical=b.schedule({time:autosaveL10n.autosaveInterval*1000,func:function(){autosave()},repeat:true,protect:true});b(&quot;#post&quot;).submit(function(){b.cancel(autosavePeriodical)});b('.submitbox input[type=&quot;submit&quot;], .submitbox a.submitdelete').click(function(){window.onbeforeunload=null});window.onbeforeunload=function(){var c=typeof(tinyMCE)!=&quot;undefined&quot;?tinyMCE.activeEditor:false,e,d;if(c&amp;&amp;!c.isHidden()){if(c.isDirty()){return autosaveL10n.saveAlert}}else{e=b(&quot;#post #title&quot;).val(),d=b(&quot;#post #content&quot;).val();if((e||d)&amp;&amp;e+d!=autosaveLast){return autosaveL10n.saveAlert}}};b(&quot;#post-preview&quot;).click(function(){if(1&gt;b(&quot;#post_ID&quot;).val()&amp;&amp;notSaved){autosaveDelayPreview=true;autosave();return false}doPreview();return false});doPreview=function(){b(&quot;input#wp-preview&quot;).val(&quot;dopreview&quot;);b(&quot;form#post&quot;).attr(&quot;target&quot;,&quot;wp-preview&quot;).submit().attr(&quot;target&quot;,&quot;&quot;);b(&quot;input#wp-preview&quot;).val(&quot;&quot;)};if(typeof tinyMCE!=&quot;undefined&quot;){b(&quot;#title&quot;)[b.browser.opera?&quot;keypress&quot;:&quot;keydown&quot;](function(c){if(c.which==9&amp;&amp;!c.shiftKey&amp;&amp;!c.controlKey&amp;&amp;!c.altKey){if((b(&quot;#post_ID&quot;).val()&lt;1)&amp;&amp;(b(&quot;#title&quot;).val().length&gt;0)){autosave()}if(tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden()&amp;&amp;a){c.preventDefault();a=false;tinyMCE.activeEditor.focus();return false}}})}});function autosave_parse_response(b){var c=wpAjax.parseAjaxResponse(b,&quot;autosave&quot;),d=&quot;&quot;,a;if(c&amp;&amp;c.responses&amp;&amp;c.responses.length){d=c.responses[0].data;if(c.responses[0].supplemental){if(&quot;disable&quot;==c.responses[0].supplemental.disable_autosave){autosave=function(){};c={errors:true}}jQuery.each(c.responses[0].supplemental,function(e,f){if(e.match(/^replace-/)){jQuery(&quot;#&quot;+e.replace(&quot;replace-&quot;,&quot;&quot;)).val(f)}})}if(!c.errors){a=parseInt(c.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){autosave_update_slug(a)}}}if(d){jQuery(&quot;#autosave&quot;).html(d)}else{if(autosaveOldMessage&amp;&amp;c){jQuery(&quot;#autosave&quot;).html(autosaveOldMessage)}}return c}function autosave_saved(a){autosave_parse_response(a);autosave_enable_buttons()}function autosave_saved_new(b){var d=autosave_parse_response(b),c,a;if(d&amp;&amp;d.responses.length&amp;&amp;!d.errors){c=jQuery(&quot;#post_ID&quot;).val();a=parseInt(d.responses[0].id,10);autosave_update_post_ID(a);if(c&lt;0&amp;&amp;a&gt;0){notSaved=false;jQuery(&quot;#media-buttons a&quot;).each(function(){this.href=this.href.replace(c,a)})}if(autosaveDelayPreview){autosaveDelayPreview=false;doPreview()}}else{autosave_enable_buttons()}}function autosave_update_post_ID(a){if(!isNaN(a)&amp;&amp;a&gt;0){if(a==parseInt(jQuery(&quot;#post_ID&quot;).val(),10)){return}jQuery(&quot;#post_ID&quot;).attr({name:&quot;post_ID&quot;});jQuery(&quot;#post_ID&quot;).val(a);jQuery.post(autosaveL10n.requestFile,{action:&quot;autosave-generate-nonces&quot;,post_ID:a,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()},function(b){jQuery(&quot;#_wpnonce&quot;).val(b);autosave_enable_buttons()});jQuery(&quot;#hiddenaction&quot;).val(&quot;editpost&quot;)}}function autosave_update_slug(a){if(jQuery.isFunction(make_slugedit_clickable)&amp;&amp;!jQuery(&quot;#edit-slug-box &gt; *&quot;).size()){jQuery.post(slugL10n.requestFile,{action:&quot;sample-permalink&quot;,post_id:a,new_title:jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(b){jQuery(&quot;#edit-slug-box&quot;).html(b);make_slugedit_clickable()})}}function autosave_loading(){jQuery(&quot;#autosave&quot;).html(autosaveL10n.savingText)}function autosave_enable_buttons(){jQuery(&quot;.submitbox :button:disabled, .submitbox :submit:disabled&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}function autosave_disable_buttons(){jQuery(&quot;.submitbox :button:enabled, .submitbox :submit:enabled&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);setTimeout(autosave_enable_buttons,5000)}autosave=function(){var c=(typeof tinyMCE!=&quot;undefined&quot;)&amp;&amp;tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden(),d,f,b,e,a;d={action:&quot;autosave&quot;,post_ID:jQuery(&quot;#post_ID&quot;).val()||0,post_title:jQuery(&quot;#title&quot;).val()||&quot;&quot;,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()||&quot;&quot;,autosave:1};jQuery(&quot;.tags-input&quot;).each(function(){d[this.name]=this.value});f=true;if(jQuery(&quot;#TB_window&quot;).css(&quot;display&quot;)==&quot;block&quot;){f=false}if(c&amp;&amp;f){b=tinyMCE.activeEditor;if(b.plugins.spellchecker&amp;&amp;b.plugins.spellchecker.active){f=false}else{if(&quot;mce_fullscreen&quot;==b.id){tinyMCE.get(&quot;content&quot;).setContent(b.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.get(&quot;content&quot;).save()}}d.content=jQuery(&quot;#content&quot;).val();if(jQuery(&quot;#post_name&quot;).val()){d.post_name=jQuery(&quot;#post_name&quot;).val()}if((d.post_title.length==0&amp;&amp;d.content.length==0)||d.post_title+d.content==autosaveLast){f=false}autosave_disable_buttons();e=jQuery(&quot;#original_post_status&quot;).val();goodcats=([]);jQuery(&quot;[name='post_category[]']:checked&quot;).each(function(g){goodcats.push(this.value)});d.catslist=goodcats.join(&quot;,&quot;);if(jQuery(&quot;#comment_status&quot;).attr(&quot;checked&quot;)){d.comment_status=&quot;open&quot;}if(jQuery(&quot;#ping_status&quot;).attr(&quot;checked&quot;)){d.ping_status=&quot;open&quot;}if(jQuery(&quot;#excerpt&quot;).size()){d.excerpt=jQuery(&quot;#excerpt&quot;).val()}if(jQuery(&quot;#post_author&quot;).size()){d.post_author=jQuery(&quot;#post_author&quot;).val()}d.user_ID=jQuery(&quot;#user-id&quot;).val();if(f){autosaveLast=jQuery(&quot;#title&quot;).val()+jQuery(&quot;#content&quot;).val()}else{d.autosave=0}if(parseInt(d.post_ID,10)&lt;1){d.temp_ID=d.post_ID;a=autosave_saved_new}else{a=autosave_saved}autosaveOldMessage=jQuery(&quot;#autosave&quot;).html();jQuery.ajax({data:d,beforeSend:f?autosave_loading:null,type:&quot;POST&quot;,url:autosaveL10n.requestFile,success:a})};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (11789 => 11790)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2009-08-08 08:38:20 UTC (rev 11789)
+++ trunk/wp-includes/script-loader.php        2009-08-08 09:03:56 UTC (rev 11790)
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">                 'l10n_print_after' =&gt; 'try{convertEntities(wpAjax);}catch(e){};'
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20090526' );
</del><ins>+        $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20090807' );
</ins><span class="cx">         $scripts-&gt;add_data( 'autosave', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20090504' );
</span></span></pre>
</div>
</div>

</body>
</html>