<!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>[11742] trunk: Fix QE returned data for Pending and Scheduled posts screens
 , use jQuery.live() for QE events, fixes #10478</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/11742">11742</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2009-07-25 10:58:05 +0000 (Sat, 25 Jul 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix QE returned data for Pending and Scheduled posts screens, use jQuery.live() for QE events, fixes <a href="http://trac.wordpress.org/ticket/10478">#10478</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
<li><a href="#trunkwpadminjsinlineeditpostdevjs">trunk/wp-admin/js/inline-edit-post.dev.js</a></li>
<li><a href="#trunkwpadminjsinlineeditpostjs">trunk/wp-admin/js/inline-edit-post.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="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (11741 => 11742)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2009-07-24 07:23:11 UTC (rev 11741)
+++ trunk/wp-admin/includes/template.php        2009-07-25 10:58:05 UTC (rev 11742)
</span><span class="lines">@@ -753,7 +753,14 @@
</span><span class="cx">         $posts_columns['author'] = __('Author');
</span><span class="cx">         $posts_columns['categories'] = __('Categories');
</span><span class="cx">         $posts_columns['tags'] = __('Tags');
</span><del>-        if ( !isset($_GET['post_status']) || !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
</del><ins>+
+        $post_status = 'all';
+        if ( isset($_GET['post_status']) )
+                $post_status = $_GET['post_status'];
+        elseif ( isset($_POST['_status']) )
+                $post_status = $_POST['_status'];
+
+        if ( !in_array( $post_status, array('pending', 'draft', 'future') ) )
</ins><span class="cx">                 $posts_columns['comments'] = '&lt;div class=&quot;vers&quot;&gt;&lt;img alt=&quot;Comments&quot; src=&quot;images/comment-grey-bubble.png&quot; /&gt;&lt;/div&gt;';
</span><span class="cx">         $posts_columns['date'] = __('Date');
</span><span class="cx">         $posts_columns = apply_filters('manage_posts_columns', $posts_columns);
</span><span class="lines">@@ -800,10 +807,14 @@
</span><span class="cx">         $posts_columns['cb'] = '&lt;input type=&quot;checkbox&quot; /&gt;';
</span><span class="cx">         $posts_columns['title'] = __('Title');
</span><span class="cx">         $posts_columns['author'] = __('Author');
</span><ins>+
</ins><span class="cx">         $post_status = 'all';
</span><del>-        if ( !empty($_GET['post_status']) )
</del><ins>+        if ( isset($_GET['post_status']) )
</ins><span class="cx">                 $post_status = $_GET['post_status'];
</span><del>-        if ( !in_array($post_status, array('pending', 'draft', 'future')) )
</del><ins>+        elseif ( isset($_POST['_status']) )
+                $post_status = $_POST['_status'];
+
+        if ( !in_array( $post_status, array('pending', 'draft', 'future') ) )
</ins><span class="cx">                 $posts_columns['comments'] = '&lt;div class=&quot;vers&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;images/comment-grey-bubble.png&quot; /&gt;&lt;/div&gt;';
</span><span class="cx">         $posts_columns['date'] = __('Date');
</span><span class="cx">         $posts_columns = apply_filters('manage_pages_columns', $posts_columns);
</span><span class="lines">@@ -1362,7 +1373,7 @@
</span><span class="cx">  * @param unknown_type $mode
</span><span class="cx">  */
</span><span class="cx"> function _post_row($a_post, $pending_comments, $mode) {
</span><del>-        global $post;
</del><ins>+        global $post, $current_user;
</ins><span class="cx">         static $rowclass;
</span><span class="cx"> 
</span><span class="cx">         $global_post = $post;
</span><span class="lines">@@ -1370,7 +1381,6 @@
</span><span class="cx">         setup_postdata($post);
</span><span class="cx"> 
</span><span class="cx">         $rowclass = 'alternate' == $rowclass ? '' : 'alternate';
</span><del>-        global $current_user;
</del><span class="cx">         $post_owner = ( $current_user-&gt;ID == $post-&gt;post_author ? 'self' : 'other' );
</span><span class="cx">         $edit_link = get_edit_post_link( $post-&gt;ID );
</span><span class="cx">         $title = _draft_or_post_title();
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.dev.js (11741 => 11742)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.dev.js        2009-07-24 07:23:11 UTC (rev 11741)
+++ trunk/wp-admin/js/inline-edit-post.dev.js        2009-07-25 10:58:05 UTC (rev 11742)
</span><span class="lines">@@ -8,9 +8,6 @@
</span><span class="cx">                 t.type = $('table.widefat').hasClass('page') ? 'page' : 'post';
</span><span class="cx">                 t.what = '#'+t.type+'-';
</span><span class="cx"> 
</span><del>-                // get all editable rows
-                t.rows = $('tr.iedit');
-
</del><span class="cx">                 // prepare the edit rows
</span><span class="cx">                 qeRow.keyup(function(e) { if(e.which == 27) return inlineEditPost.revert(); });
</span><span class="cx">                 bulkRow.keyup(function(e) { if (e.which == 27) return inlineEditPost.revert(); });
</span><span class="lines">@@ -31,7 +28,7 @@
</span><span class="cx">                 });
</span><span class="cx"> 
</span><span class="cx">                 // add events
</span><del>-                t.addEvents(t.rows);
</del><ins>+                $('a.editinline').live('click', function() { inlineEditPost.edit(this); return false; });
</ins><span class="cx"> 
</span><span class="cx">                 $('#bulk-title-div').parents('fieldset').after(
</span><span class="cx">                         $('#inline-edit fieldset.inline-edit-categories').clone()
</span><span class="lines">@@ -76,13 +73,6 @@
</span><span class="cx">                 $(t.what+t.getId(el)).css('display') == 'none' ? t.revert() : t.edit(el);
</span><span class="cx">         },
</span><span class="cx"> 
</span><del>-        addEvents : function(r) {
-                r.each(function() {
-                        var row = $(this);
-                        $('a.editinline', row).click(function() { inlineEditPost.edit(this); return false; });
-                });
-        },
-
</del><span class="cx">         setBulk : function() {
</span><span class="cx">                 var te = '', type = this.type, tax;
</span><span class="cx">                 this.revert();
</span><span class="lines">@@ -205,7 +195,7 @@
</span><span class="cx">                         edit_date: 'true'
</span><span class="cx">                 };
</span><span class="cx"> 
</span><del>-                fields = $('#edit-'+id+' :input').fieldSerialize();
</del><ins>+                fields = $('#edit-'+id+' :input').serialize();
</ins><span class="cx">                 params = fields + '&amp;' + $.param(params);
</span><span class="cx"> 
</span><span class="cx">                 // make ajax request
</span><span class="lines">@@ -217,15 +207,7 @@
</span><span class="cx">                                         if ( -1 != r.indexOf('&lt;tr') ) {
</span><span class="cx">                                                 $(inlineEditPost.what+id).remove();
</span><span class="cx">                                                 $('#edit-'+id).before(r).remove();
</span><del>-
-                                                var row = $(inlineEditPost.what+id);
-                                                row.hide();
-
-                                                if ( 'draft' == $('input[name=&quot;post_status&quot;]').val() )
-                                                        row.find('td.column-comments').hide();
-
-                                                inlineEditPost.addEvents(row);
-                                                row.fadeIn();
</del><ins>+                                                $(inlineEditPost.what+id).hide().fadeIn();
</ins><span class="cx">                                         } else {
</span><span class="cx">                                                 r = r.replace( /&lt;.[^&lt;&gt;]*?&gt;/g, '' );
</span><span class="cx">                                                 $('#edit-'+id+' .inline-edit-save').append('&lt;span class=&quot;error&quot;&gt;'+r+'&lt;/span&gt;');
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.js (11741 => 11742)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.js        2009-07-24 07:23:11 UTC (rev 11741)
+++ trunk/wp-admin/js/inline-edit-post.js        2009-07-25 10:58:05 UTC (rev 11742)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(a){inlineEditPost={init:function(){var c=this,d=a(&quot;#inline-edit&quot;),b=a(&quot;#bulk-edit&quot;);c.type=a(&quot;table.widefat&quot;).hasClass(&quot;page&quot;)?&quot;page&quot;:&quot;post&quot;;c.what=&quot;#&quot;+c.type+&quot;-&quot;;c.rows=a(&quot;tr.iedit&quot;);d.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});a(&quot;a.cancel&quot;,d).click(function(){return inlineEditPost.revert()});a(&quot;a.save&quot;,d).click(function(){return inlineEditPost.save(this)});a(&quot;td&quot;,d).keydown(function(f){if(f.which==13){return inlineEditPost.save(this)}});a(&quot;a.cancel&quot;,b).click(function(){return inlineEditPost.revert()});a(&quot;#inline-edit .inline-edit-private input[value=private]&quot;).click(function(){var e=a(&quot;input.inline-edit-password-input&quot;);if(a(this).attr(&quot;checked&quot;)){e.val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}else{e.attr(&quot;disabled&quot;,&quot;&quot;)}});c.addEvents(c.rows);a(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after(a(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend(a(&quot;#inline-edit label.inline-edit-tags&quot;).clone());a(&quot;span.catshow&quot;).click(function(){a(&quot;.inline-editor ul.cat-checklist&quot;).addClass(&quot;cat-hover&quot;);a(&quot;.inline-editor span.cathide&quot;).show();a(this).hide()});a(&quot;span.cathide&quot;).click(function(){a(&quot;.inline-editor ul.cat-checklist&quot;).removeClass(&quot;cat-hover&quot;);a(&quot;.inline-editor span.catshow&quot;).show();a(this).hide()});a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',b).remove();a(&quot;#doaction, #doaction2&quot;).click(function(f){var g=a(this).attr(&quot;id&quot;).substr(2);if(a('select[name=&quot;'+g+'&quot;]').val()==&quot;edit&quot;){f.preventDefault();c.setBulk()}else{if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}}});a(&quot;#post-query-submit&quot;).click(function(f){if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},addEvents:function(b){b.each(function(){var c=a(this);a(&quot;a.editinline&quot;,c).click(function(){inlineEditPost.edit(this);return false})})},setBulk:function(){var d=&quot;&quot;,c=this.type,b;this.revert();a(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);a(&quot;table.widefat tbody&quot;).prepend(a(&quot;#bulk-edit&quot;));a(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();a('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(f){if(a(this).attr(&quot;checked&quot;)){var g=a(this).val(),e;e=a(&quot;#inline_&quot;+g+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;d+='&lt;div id=&quot;ttle'+g+'&quot;&gt;&lt;a id=&quot;_'+g+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+e+&quot;&lt;/div&gt;&quot;}});a(&quot;#bulk-titles&quot;).html(d);a(&quot;#bulk-titles a&quot;).click(function(){var e=a(this).attr(&quot;id&quot;).substr(1);a('table.widefat input[value=&quot;'+e+'&quot;]').attr(&quot;checked&quot;,&quot;&quot;);a(&quot;#ttle&quot;+e).remove()});if(c==&quot;post&quot;){b=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+b,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}},edit:function(b){var o=this,j,d,g,n,i,h,k,m,l,c=true,p,e;o.revert();if(typeof(b)==&quot;object&quot;){b=o.getId(b)}j=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(o.type==&quot;page&quot;){j.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}if(o.type==&quot;post&quot;){j.push(&quot;tags_input&quot;)}d=a(&quot;#inline-edit&quot;).clone(true);a(&quot;td&quot;,d).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(o.what+b).hasClass(&quot;alternate&quot;)){a(d).addClass(&quot;alternate&quot;)}a(o.what+b).hide().after(d);g=a(&quot;#inline_&quot;+b);for(k=0;k&lt;j.length;k++){a(':input[name=&quot;'+j[k]+'&quot;]',d).val(a(&quot;.&quot;+j[k],g).text())}if(a(&quot;.comment_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;comment_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.ping_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;ping_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.sticky&quot;,g).text()==&quot;sticky&quot;){a('input[name=&quot;sticky&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(n=a(&quot;.post_category&quot;,g).text()){a(&quot;ul.cat-checklist :checkbox&quot;,d).val(n.split(&quot;,&quot;))}i=a(&quot;._status&quot;,g).text();if(i!=&quot;future&quot;){a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',d).remove()}if(i==&quot;private&quot;){a('input[name=&quot;keep_private&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;);a(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}h=a('select[name=&quot;post_parent&quot;] option[value=&quot;'+b+'&quot;]',d);if(h.length&gt;0){m=h[0].className.split(&quot;-&quot;)[1];l=h;while(c){l=l.next(&quot;option&quot;);if(l.length==0){break}p=l[0].className.split(&quot;-&quot;)[1];if(p&lt;=m){c=false}else{l.remove();l=h}}h.remove()}a(d).attr(&quot;id&quot;,&quot;edit-&quot;+b).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,d).focus();if(o.type==&quot;post&quot;){e=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+e,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}return false},save:function(d){var c,b;if(typeof(d)==&quot;object&quot;){d=this.getId(d)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();c={action:&quot;inline-save&quot;,post_type:this.type,post_ID:d,edit_date:&quot;true&quot;};b=a(&quot;#edit-&quot;+d+&quot; :input&quot;).fieldSerialize();c=b+&quot;&amp;&quot;+a.param(c);a.post(&quot;admin-ajax.php&quot;,c,function(e){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(e){if(-1!=e.indexOf(&quot;&lt;tr&quot;)){a(inlineEditPost.what+d).remove();a(&quot;#edit-&quot;+d).before(e).remove();var f=a(inlineEditPost.what+d);f.hide();if(&quot;draft&quot;==a('input[name=&quot;post_status&quot;]').val()){f.find(&quot;td.column-comments&quot;).hide()}inlineEditPost.addEvents(f);f.fadeIn()}else{e=e.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);a(&quot;#edit-&quot;+d+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+e+&quot;&lt;/span&gt;&quot;)}}else{a(&quot;#edit-&quot;+d+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+inlineEditL10n.error+&quot;&lt;/span&gt;&quot;)}},&quot;html&quot;);return false},revert:function(){var b;if(b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;)){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==b){a(&quot;table.widefat #bulk-edit&quot;).removeClass(&quot;inline-editor&quot;).hide();a(&quot;#bulk-titles&quot;).html(&quot;&quot;);a(&quot;#inlineedit&quot;).append(a(&quot;#bulk-edit&quot;))}else{a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}}return false},getId:function(c){var d=c.tagName==&quot;TR&quot;?c.id:a(c).parents(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditPost.init()})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){inlineEditPost={init:function(){var c=this,d=a(&quot;#inline-edit&quot;),b=a(&quot;#bulk-edit&quot;);c.type=a(&quot;table.widefat&quot;).hasClass(&quot;page&quot;)?&quot;page&quot;:&quot;post&quot;;c.what=&quot;#&quot;+c.type+&quot;-&quot;;d.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});a(&quot;a.cancel&quot;,d).click(function(){return inlineEditPost.revert()});a(&quot;a.save&quot;,d).click(function(){return inlineEditPost.save(this)});a(&quot;td&quot;,d).keydown(function(f){if(f.which==13){return inlineEditPost.save(this)}});a(&quot;a.cancel&quot;,b).click(function(){return inlineEditPost.revert()});a(&quot;#inline-edit .inline-edit-private input[value=private]&quot;).click(function(){var e=a(&quot;input.inline-edit-password-input&quot;);if(a(this).attr(&quot;checked&quot;)){e.val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}else{e.attr(&quot;disabled&quot;,&quot;&quot;)}});a(&quot;a.editinline&quot;).live(&quot;click&quot;,function(){inlineEditPost.edit(this);return false});a(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after(a(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend(a(&quot;#inline-edit label.inline-edit-tags&quot;).clone());a(&quot;span.catshow&quot;).click(function(){a(&quot;.inline-editor ul.cat-checklist&quot;).addClass(&quot;cat-hover&quot;);a(&quot;.inline-editor span.cathide&quot;).show();a(this).hide()});a(&quot;span.cathide&quot;).click(function(){a(&quot;.inline-editor ul.cat-checklist&quot;).removeClass(&quot;cat-hover&quot;);a(&quot;.inline-editor span.catshow&quot;).show();a(this).hide()});a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',b).remove();a(&quot;#doaction, #doaction2&quot;).click(function(f){var g=a(this).attr(&quot;id&quot;).substr(2);if(a('select[name=&quot;'+g+'&quot;]').val()==&quot;edit&quot;){f.preventDefault();c.setBulk()}else{if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}}});a(&quot;#post-query-submit&quot;).click(function(f){if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},setBulk:function(){var d=&quot;&quot;,c=this.type,b;this.revert();a(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);a(&quot;table.widefat tbody&quot;).prepend(a(&quot;#bulk-edit&quot;));a(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();a('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(f){if(a(this).attr(&quot;checked&quot;)){var g=a(this).val(),e;e=a(&quot;#inline_&quot;+g+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;d+='&lt;div id=&quot;ttle'+g+'&quot;&gt;&lt;a id=&quot;_'+g+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+e+&quot;&lt;/div&gt;&quot;}});a(&quot;#bulk-titles&quot;).html(d);a(&quot;#bulk-titles a&quot;).click(function(){var e=a(this).attr(&quot;id&quot;).substr(1);a('table.widefat input[value=&quot;'+e+'&quot;]').attr(&quot;checked&quot;,&quot;&quot;);a(&quot;#ttle&quot;+e).remove()});if(c==&quot;post&quot;){b=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+b,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}},edit:function(b){var o=this,j,d,g,n,i,h,k,m,l,c=true,p,e;o.revert();if(typeof(b)==&quot;object&quot;){b=o.getId(b)}j=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(o.type==&quot;page&quot;){j.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}if(o.type==&quot;post&quot;){j.push(&quot;tags_input&quot;)}d=a(&quot;#inline-edit&quot;).clone(true);a(&quot;td&quot;,d).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(o.what+b).hasClass(&quot;alternate&quot;)){a(d).addClass(&quot;alternate&quot;)}a(o.what+b).hide().after(d);g=a(&quot;#inline_&quot;+b);for(k=0;k&lt;j.length;k++){a(':input[name=&quot;'+j[k]+'&quot;]',d).val(a(&quot;.&quot;+j[k],g).text())}if(a(&quot;.comment_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;comment_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.ping_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;ping_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.sticky&quot;,g).text()==&quot;sticky&quot;){a('input[name=&quot;sticky&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(n=a(&quot;.post_category&quot;,g).text()){a(&quot;ul.cat-checklist :checkbox&quot;,d).val(n.split(&quot;,&quot;))}i=a(&quot;._status&quot;,g).text();if(i!=&quot;future&quot;){a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',d).remove()}if(i==&quot;private&quot;){a('input[name=&quot;keep_private&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;);a(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}h=a('select[name=&quot;post_parent&quot;] option[value=&quot;'+b+'&quot;]',d);if(h.length&gt;0){m=h[0].className.split(&quot;-&quot;)[1];l=h;while(c){l=l.next(&quot;option&quot;);if(l.length==0){break}p=l[0].className.split(&quot;-&quot;)[1];if(p&lt;=m){c=false}else{l.remove();l=h}}h.remove()}a(d).attr(&quot;id&quot;,&quot;edit-&quot;+b).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,d).focus();if(o.type==&quot;post&quot;){e=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+e,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}return false},save:function(d){var c,b;if(typeof(d)==&quot;object&quot;){d=this.getId(d)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();c={action:&quot;inline-save&quot;,post_type:this.type,post_ID:d,edit_date:&quot;true&quot;};b=a(&quot;#edit-&quot;+d+&quot; :input&quot;).serialize();c=b+&quot;&amp;&quot;+a.param(c);a.post(&quot;admin-ajax.php&quot;,c,function(e){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(e){if(-1!=e.indexOf(&quot;&lt;tr&quot;)){a(inlineEditPost.what+d).remove();a(&quot;#edit-&quot;+d).before(e).remove();a(inlineEditPost.what+d).hide().fadeIn()}else{e=e.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);a(&quot;#edit-&quot;+d+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+e+&quot;&lt;/span&gt;&quot;)}}else{a(&quot;#edit-&quot;+d+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+inlineEditL10n.error+&quot;&lt;/span&gt;&quot;)}},&quot;html&quot;);return false},revert:function(){var b;if(b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;)){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==b){a(&quot;table.widefat #bulk-edit&quot;).removeClass(&quot;inline-editor&quot;).hide();a(&quot;#bulk-titles&quot;).html(&quot;&quot;);a(&quot;#inlineedit&quot;).append(a(&quot;#bulk-edit&quot;))}else{a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}}return false},getId:function(c){var d=c.tagName==&quot;TR&quot;?c.id:a(c).parents(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditPost.init()})})(jQuery);
</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 (11741 => 11742)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2009-07-24 07:23:11 UTC (rev 11741)
+++ trunk/wp-includes/script-loader.php        2009-07-25 10:58:05 UTC (rev 11742)
</span><span class="lines">@@ -116,6 +116,7 @@
</span><span class="cx">         $scripts-&gt;add( 'scriptaculous-controls', '/wp-includes/js/scriptaculous/controls.js', array('scriptaculous-root'), '1.8.0');
</span><span class="cx">         $scripts-&gt;add( 'scriptaculous', '', array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls'), '1.8.0');
</span><span class="cx"> 
</span><ins>+        // not used in core, replaced by Jcrop.js
</ins><span class="cx">         $scripts-&gt;add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118');
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.3.2');
</span><span class="lines">@@ -144,12 +145,14 @@
</span><span class="cx">         $scripts-&gt;add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.7.1' );
</span><span class="cx">         $scripts-&gt;add_data( 'jquery-ui-dialog', 'group', 1 );
</span><span class="cx"> 
</span><ins>+        // deprecated, not used in core, most functionality is included in jQuery 1.3
</ins><span class="cx">         $scripts-&gt;add( 'jquery-form', &quot;/wp-includes/js/jquery/jquery.form$suffix.js&quot;, array('jquery'), '2.02m');
</span><span class="cx">         $scripts-&gt;add_data( 'jquery-form', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'jquery-color', &quot;/wp-includes/js/jquery/jquery.color$suffix.js&quot;, array('jquery'), '2.0-4561m');
</span><span class="cx">         $scripts-&gt;add_data( 'jquery-color', 'group', 1 );
</span><span class="cx"> 
</span><ins>+        // deprecated, not used in core
</ins><span class="cx">         $scripts-&gt;add( 'interface', '/wp-includes/js/jquery/interface.js', array('jquery'), '1.2' );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'suggest', &quot;/wp-includes/js/jquery/suggest$suffix.js&quot;, array('jquery'), '1.1-20090125');
</span><span class="lines">@@ -357,7 +360,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'theme-preview', &quot;/wp-admin/js/theme-preview$suffix.js&quot;, array( 'thickbox', 'jquery' ), '20090319' );
</span><span class="cx">                 $scripts-&gt;add_data( 'theme-preview', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery-form', 'suggest' ), '20090125' );
</del><ins>+                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20090725' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'inline-edit-post', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'inline-edit-post', 'inlineEditL10n', array(
</span><span class="cx">                         'error' =&gt; __('Error while saving the changes.'),
</span></span></pre>
</div>
</div>

</body>
</html>